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:
@@ -417,7 +417,7 @@ protected:
|
||||
{
|
||||
UiQualifiedId *id = qualifiedTypeNameId(member);
|
||||
if (id) {
|
||||
const QStringView &name = id->name;
|
||||
QStringView name = id->name;
|
||||
if (!name.isEmpty() && name.at(0).isUpper())
|
||||
return true;
|
||||
}
|
||||
@@ -435,7 +435,7 @@ protected:
|
||||
else if (script->qualifiedId->next)
|
||||
return false;
|
||||
|
||||
const QStringView &propertyName = script->qualifiedId->name;
|
||||
QStringView propertyName = script->qualifiedId->name;
|
||||
|
||||
if (propertyName == QLatin1String("id"))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user