summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization/qjsonarray.cpp
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2024-08-27 14:32:46 +0200
committerMarc Mutz <marc.mutz@qt.io>2024-08-28 13:07:19 +0000
commit405cee34297f3cf2a822658ba14922dfaaa8429d (patch)
tree9aa67cb060862395e80ece75b4f1c84e4cddfb2b /src/corelib/serialization/qjsonarray.cpp
parent94929a63c8e26b924c4db78b88344fcc21530595 (diff)
QtJniTypes::JObject: fix comparison operators
The comparesEqual() helper method cannot be noexcept, because the comparison operators of the underlying QJniObject are not, and cannot readily be made noexcept, because they end up calling JNI stuff like jniEnv()->IsSameObject(). Also, the *_LITERAL_TYPE helper macro should be used only if the operators are constexpr, which is also not correct in this case. Remove the noexcept specifier from the helper method and use the *_NON_NOEXCEPT version of the comparison helper macro. This change is picked to 6.8 and 6.7, because the API is marked as tech preview. The 6.7 cherry-pick would require a manual fix, because the *_NON_NOEXCEPT version of the macro didn't exist back then. Amends a5d14a9f5cfe41784960fe825609d91b9a18c17e. Pick-to: 6.8 6.7 Change-Id: Ic01c0b09f94b94677a9771d1763518697aafc3ef Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/corelib/serialization/qjsonarray.cpp')
0 files changed, 0 insertions, 0 deletions