Make QmlJS(Tools) build with Qt5 & Qt6

Port from QStringRef to QStringView

Change-Id: I472d16f20e40ca52b8e5d481850a6bd8a1a38f3b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Eike Ziller
2020-09-16 15:08:57 +02:00
parent 5ad724c61b
commit cf2a651c3b
37 changed files with 442 additions and 321 deletions

View File

@@ -411,7 +411,7 @@ protected:
{
UiQualifiedId *id = qualifiedTypeNameId(member);
if (id) {
const QStringRef &name = id->name;
const QStringView &name = id->name;
if (!name.isEmpty() && name.at(0).isUpper())
return true;
}
@@ -429,7 +429,7 @@ protected:
else if (script->qualifiedId->next)
return false;
const QStringRef &propertyName = script->qualifiedId->name;
const QStringView &propertyName = script->qualifiedId->name;
if (propertyName == QLatin1String("id"))
return true;