aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmljs/qmljsinterpreter.cpp
diff options
context:
space:
mode:
authorKai Köhne <[email protected]>2021-06-15 20:25:49 +0200
committerKai Koehne <[email protected]>2021-06-17 09:54:42 +0000
commitbf04c98c1c3d8e03db61b0811e1cc47517c49afa (patch)
treef0b84dd13e5610f90e9d9e08f109a6865cb70625 /src/libs/qmljs/qmljsinterpreter.cpp
parent4bfcea22bf31ad7d9718d5d30402d74ba0568dac (diff)
Do not pass QStringView by const reference
That's what the documentation says: https://doc.qt.io/qt-6/qstringview.html#details Change-Id: I0b41fc4abad1601c0ed416a505534cf7ae7633e1 Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsinterpreter.cpp')
-rw-r--r--src/libs/qmljs/qmljsinterpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp
index 0efe52d45bc..9ae98e35309 100644
--- a/src/libs/qmljs/qmljsinterpreter.cpp
+++ b/src/libs/qmljs/qmljsinterpreter.cpp
@@ -1063,7 +1063,7 @@ void ObjectValue::setMember(const QString &name, const Value *value)
m_members[name].value = value;
}
-void ObjectValue::setMember(const QStringView &name, const Value *value)
+void ObjectValue::setMember(QStringView name, const Value *value)
{
m_members[name.toString()].value = value;
}