Commit e81f0e25 authored by Friedemann Kleint's avatar Friedemann Kleint

Reduce usage of QStringRef::toString() in cppcodeformatter.cpp.

Change-Id: Iff4634c3bd3829d236e3dd38e4d29ced5f118db6
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 59c49d53
......@@ -840,7 +840,7 @@ bool CodeFormatter::tryDeclaration()
return true;
case T_IDENTIFIER:
if (m_tokenIndex == 0) {
QString tokenText = currentTokenText().toString();
const QStringRef tokenText = currentTokenText();
if (tokenText.startsWith(QLatin1String("Q_"))
|| tokenText.startsWith(QLatin1String("QT_"))
|| tokenText.startsWith(QLatin1String("QML_"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment