From 328c0cf809a437a9875e485d2da12a2da22cd11b Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 15 Jun 2020 17:39:32 +0200 Subject: CppTool: Avoid a use of QStringRef Change-Id: I2a82bad7d91e059915526f0cf7b89f0d8367463a Reviewed-by: Christian Kandeler --- src/plugins/cpptools/cpptoolsreuse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cpptoolsreuse.h') diff --git a/src/plugins/cpptools/cpptoolsreuse.h b/src/plugins/cpptools/cpptoolsreuse.h index afab4a4684..00472979b0 100644 --- a/src/plugins/cpptools/cpptoolsreuse.h +++ b/src/plugins/cpptools/cpptoolsreuse.h @@ -52,7 +52,7 @@ namespace CppTools { void CPPTOOLS_EXPORT moveCursorToEndOfIdentifier(QTextCursor *tc); void CPPTOOLS_EXPORT moveCursorToStartOfIdentifier(QTextCursor *tc); -bool CPPTOOLS_EXPORT isQtKeyword(const QStringRef &text); +bool CPPTOOLS_EXPORT isQtKeyword(QStringView text); bool CPPTOOLS_EXPORT isValidAsciiIdentifierChar(const QChar &ch); bool CPPTOOLS_EXPORT isValidFirstIdentifierChar(const QChar &ch); -- cgit v1.2.1