aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cpphighlighter.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-09-18 12:39:32 +0200
committerEike Ziller <eike.ziller@qt.io>2020-09-21 07:21:48 +0000
commit830a829b2ebb224a970fecdca71055963a174c71 (patch)
tree59b9b04653f92f5d441d8edddc199018931e73bd /src/plugins/cppeditor/cpphighlighter.h
parentf8ae0518164071c1c9c2b15780faf5761c630798 (diff)
Fix build of Clang code model and CppEditor with Qt 6
QStringRef gone. QSharedPointer is no longer auto-converted to bool. Small things. Task-number: QTCREATORBUG-24098 Change-Id: I3a2a55459b905118d1ca81ec015d741ab273471d Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cpphighlighter.h')
-rw-r--r--src/plugins/cppeditor/cpphighlighter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cpphighlighter.h b/src/plugins/cppeditor/cpphighlighter.h
index eb7f861a7a..7e55fa4ad8 100644
--- a/src/plugins/cppeditor/cpphighlighter.h
+++ b/src/plugins/cppeditor/cpphighlighter.h
@@ -46,13 +46,13 @@ public:
void highlightBlock(const QString &text) override;
private:
- void highlightWord(QStringRef word, int position, int length);
+ void highlightWord(QStringView word, int position, int length);
bool highlightRawStringLiteral(const QStringView &text, const CPlusPlus::Token &tk);
void highlightDoxygenComment(const QString &text, int position,
int length);
- bool isPPKeyword(const QStringRef &text) const;
+ bool isPPKeyword(const QStringView &text) const;
private:
CPlusPlus::LanguageFeatures m_languageFeatures = CPlusPlus::LanguageFeatures::defaultFeatures();