From 242579099a3fd31499e03b945e866e7159f4a1fb Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 15 Sep 2020 15:27:32 +0200 Subject: CppTools: Fix QStringRef and QSharedPointer related issues with Qt6 Task-number: QTCREATORBUG-24098 Change-Id: I97347ac3fb397fea8eee655e3cc4ee252c511885 Reviewed-by: hjk --- src/libs/cplusplus/MatchingText.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libs/cplusplus/MatchingText.cpp') diff --git a/src/libs/cplusplus/MatchingText.cpp b/src/libs/cplusplus/MatchingText.cpp index 9e1ffdecb8..dafe521dd4 100644 --- a/src/libs/cplusplus/MatchingText.cpp +++ b/src/libs/cplusplus/MatchingText.cpp @@ -54,7 +54,7 @@ static bool shouldOverrideChar(QChar ch) static bool isCompleteStringLiteral(const BackwardsScanner &tk, int index) { - const QStringRef text = tk.textRef(index); + const QStringView text = tk.textRef(index); if (text.length() < 2) return false; -- cgit v1.2.1