diff options
author | Christian Strømme <christian.stromme@theqtcompany.com> | 2015-02-16 14:36:44 +0100 |
---|---|---|
committer | Christian Stromme <christian.stromme@theqtcompany.com> | 2015-03-02 13:52:01 +0000 |
commit | 4eb51defe10f4b97a3b6107ed4080311c0876a65 (patch) | |
tree | 49760feed20fba71c7463c859233bcd8f3a87743 /src/androidextras/jni/qandroidjniobject.cpp | |
parent | ecd7db7ff28c3dae943ea364464ee8941e36c4c7 (diff) |
Fix comparison overloads.
The templated comparison overloads could cause build errors due to
overload resolution being ambiguous; since implicit conversion from jni
object types to QAndroidJniObject is allowed the operator could end up
competing with built in types. To avoid that we get this ambiguity both
arguments of the operators will now require a QAndroidJniObject, this
effectively disables the templated operators unless called directly.
Since the templated operator overloads does not export any symbols and
are still callable, we retain both SC* and BC.
*Code that is written after this change, that would otherwise be affected
by this bug, will of course not be able to move back to an older version.
Task-number: QTBUG-43453
Change-Id: Icc774c432d078aeb7eb80ccbd0c25196af5f5a51
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/androidextras/jni/qandroidjniobject.cpp')
0 files changed, 0 insertions, 0 deletions