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:
@@ -202,7 +202,7 @@ void QmlJSHighlighter::highlightBlock(const QString &text)
|
||||
onBlockEnd(m_scanner.state());
|
||||
}
|
||||
|
||||
bool QmlJSHighlighter::maybeQmlKeyword(const QStringView &text) const
|
||||
bool QmlJSHighlighter::maybeQmlKeyword(QStringView text) const
|
||||
{
|
||||
if (text.isEmpty())
|
||||
return false;
|
||||
@@ -228,7 +228,7 @@ bool QmlJSHighlighter::maybeQmlKeyword(const QStringView &text) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool QmlJSHighlighter::maybeQmlBuiltinType(const QStringView &text) const
|
||||
bool QmlJSHighlighter::maybeQmlBuiltinType(QStringView text) const
|
||||
{
|
||||
if (text.isEmpty())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user