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:
@@ -278,7 +278,7 @@ void CppHighlighter::setLanguageFeatures(const LanguageFeatures &languageFeature
|
||||
}
|
||||
}
|
||||
|
||||
bool CppHighlighter::isPPKeyword(const QStringView &text) const
|
||||
bool CppHighlighter::isPPKeyword(QStringView text) const
|
||||
{
|
||||
switch (text.length())
|
||||
{
|
||||
@@ -370,7 +370,7 @@ void CppHighlighter::highlightWord(QStringView word, int position, int length)
|
||||
}
|
||||
}
|
||||
|
||||
bool CppHighlighter::highlightRawStringLiteral(const QStringView &_text, const Token &tk)
|
||||
bool CppHighlighter::highlightRawStringLiteral(QStringView _text, const Token &tk)
|
||||
{
|
||||
// Step one: Does the lexer think this is a raw string literal?
|
||||
switch (tk.kind()) {
|
||||
|
||||
Reference in New Issue
Block a user