QJniObject: fix signature of LocalFrame::newLocalRef
The implementation calls a const member function on the QJniObject passed in, and no move happens. And the parameter is not a universal reference either. Found during header review. Task-number: QTBUG-119952 Change-Id: I9479df798178b089277aa230f50f4e73f38ceb2c Reviewed-by: Marc Mutz <marc.mutz@qt.io> Reviewed-by: Juha Vuolle <juha.vuolle@qt.io> (cherry picked from commit a6151e2d35b67e628eb1a6932bec39e100a2d692) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
2cb6d38089
commit
0604ce57ea
@ -40,7 +40,7 @@ class Q_CORE_EXPORT QJniObject
|
||||
return static_cast<T>(jniEnv()->NewLocalRef(object));
|
||||
}
|
||||
template <typename T>
|
||||
auto newLocalRef(QJniObject &&object)
|
||||
auto newLocalRef(const QJniObject &object)
|
||||
{
|
||||
return newLocalRef<T>(object.template object<T>());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user