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 <>
parent 59c49d53
......@@ -840,7 +840,7 @@ bool CodeFormatter::tryDeclaration()
return true;
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