diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2012-05-23 03:49:57 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-25 21:49:21 +0200 |
commit | 09f20e75a4556e9c2f24db8606def88770e6f5df (patch) | |
tree | 79ab22178fe6168022aa5297ca69e954b8590ebc /src/gui/text | |
parent | c31681ab623297ce767d78d68b04ccf551607ef1 (diff) |
Replace `const QLatin1String &` with `QLatin1String` where appropriate
Task-Id: QTBUG-24502
Change-Id: I360dee4dc68c165de0631ce4cf34e76fd873080e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/text')
-rw-r--r-- | src/gui/text/qcssparser.cpp | 2 | ||||
-rw-r--r-- | src/gui/text/qcssparser_p.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qcssparser.cpp b/src/gui/text/qcssparser.cpp index c1838be59b..0f90a5244e 100644 --- a/src/gui/text/qcssparser.cpp +++ b/src/gui/text/qcssparser.cpp @@ -2755,7 +2755,7 @@ bool Parser::until(QCss::TokenType target, QCss::TokenType target2) return false; } -bool Parser::testTokenAndEndsWith(QCss::TokenType t, const QLatin1String &str) +bool Parser::testTokenAndEndsWith(QCss::TokenType t, QLatin1String str) { if (!test(t)) return false; if (!lexem().endsWith(str, Qt::CaseInsensitive)) { diff --git a/src/gui/text/qcssparser_p.h b/src/gui/text/qcssparser_p.h index a5601fe58a..0dc4438d04 100644 --- a/src/gui/text/qcssparser_p.h +++ b/src/gui/text/qcssparser_p.h @@ -824,7 +824,7 @@ public: return (index - 1) < symbols.count() ? symbols.at(index - 1).token : NONE; } - bool testTokenAndEndsWith(TokenType t, const QLatin1String &str); + bool testTokenAndEndsWith(TokenType t, QLatin1String str); inline bool recordError() { errorIndex = index; return false; } |