summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qinputmethod.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-06-08 16:39:59 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-06-09 14:22:51 +0200
commitd26a6e4a9250c9647289e1e62d4d0848c4f06b6f (patch)
treea2f7b3b43df6d52dd2e094dfe291eb64ed5be6ff /src/gui/kernel/qinputmethod.cpp
parent4c32443bc9e738067f518fff54b1db99cde1c3fd (diff)
Pass QVariant by reference, address ### Qt 6 comment
Change-Id: I0a3fab84e699c73299e2c72a6739ecf4ed856177 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/gui/kernel/qinputmethod.cpp')
-rw-r--r--src/gui/kernel/qinputmethod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qinputmethod.cpp b/src/gui/kernel/qinputmethod.cpp
index a319529442..f5de06aea1 100644
--- a/src/gui/kernel/qinputmethod.cpp
+++ b/src/gui/kernel/qinputmethod.cpp
@@ -419,7 +419,7 @@ bool QInputMethodPrivate::objectAcceptsInputMethod(QObject *object)
/*!
Send \a query to the current focus object with parameters \a argument and return the result.
*/
-QVariant QInputMethod::queryFocusObject(Qt::InputMethodQuery query, QVariant argument)
+QVariant QInputMethod::queryFocusObject(Qt::InputMethodQuery query, const QVariant &argument)
{
QVariant retval;
QObject *focusObject = qGuiApp->focusObject();