forked from qt-creator/qt-creator
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:
@@ -313,7 +313,7 @@ ImportMatchStrength ImportKey::matchImport(const ImportKey &o, const ViewerConte
|
||||
}
|
||||
if (!p1.startsWith(QLatin1Char('+')))
|
||||
return QList<int>();
|
||||
QStringRef selectorAtt(&p1, 1, p1.size()-1);
|
||||
const QStringView selectorAtt(p1.constData() + 1, p1.size() - 1);
|
||||
while (iSelector < nSelectors) {
|
||||
if (selectorAtt == vContext.selectors.at(iSelector))
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user