From 25f40b2de2b1e284ca94beda68cbfd27a012839d Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Sat, 19 May 2012 21:31:41 +0300 Subject: replace remaining "const QChar &" with "QChar" QChar is actually a ushort and passing it via const-ref is suboptimal Change-Id: Ib806b90397de6a816142ed130a22c0fe10a85d79 Reviewed-by: Oswald Buddenhagen --- src/tools/qdoc/qmlparser/qqmljslexer.cpp | 2 +- tests/auto/corelib/tools/qstring/tst_qstring.cpp | 2 +- tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/qdoc/qmlparser/qqmljslexer.cpp b/src/tools/qdoc/qmlparser/qqmljslexer.cpp index 4c75c6e30e..537e4297e0 100644 --- a/src/tools/qdoc/qmlparser/qqmljslexer.cpp +++ b/src/tools/qdoc/qmlparser/qqmljslexer.cpp @@ -58,7 +58,7 @@ QT_END_NAMESPACE using namespace QQmlJS; -static int regExpFlagFromChar(const QChar &ch) +static inline int regExpFlagFromChar(QChar ch) { switch (ch.unicode()) { case 'g': return Lexer::RegExp_Global; diff --git a/tests/auto/corelib/tools/qstring/tst_qstring.cpp b/tests/auto/corelib/tools/qstring/tst_qstring.cpp index 78a19830a1..a3c418c1bb 100644 --- a/tests/auto/corelib/tools/qstring/tst_qstring.cpp +++ b/tests/auto/corelib/tools/qstring/tst_qstring.cpp @@ -4901,7 +4901,7 @@ void tst_QString::arg_fillChar() for (int i=0; i