forked from qt-creator/qt-creator
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 <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user