diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2012-05-19 21:31:41 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-22 20:56:38 +0200 |
commit | 25f40b2de2b1e284ca94beda68cbfd27a012839d (patch) | |
tree | 3baf8084dfb96cab8bc6cf99299cd19fe61d021d /tests | |
parent | 7e6cd359af373e2fb12c101bb3b8d75bbb113424 (diff) |
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 <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/tools/qstring/tst_qstring.cpp | 2 | ||||
-rw-r--r-- | tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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<replaceValues.count(); ++i) { const QVariant &var = replaceValues.at(i); const int width = widths.at(i); - const QChar &fillChar = fillChars.at(i); + const QChar fillChar = fillChars.at(i); switch (var.type()) { case QVariant::String: actual = actual.arg(var.toString(), width, fillChar); break; case QVariant::Int: actual = actual.arg(var.toInt(), width, base, fillChar); break; diff --git a/tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp b/tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp index f2ecd5dacb..f0095c63a8 100644 --- a/tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp +++ b/tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp @@ -1032,7 +1032,7 @@ void tst_QTextScriptEngine::linearB() } #if defined(Q_WS_X11) -static bool decomposedShaping( const QFont &f, const QChar &ch) +static bool decomposedShaping(const QFont &f, QChar ch) { QString str = QString().append(ch); QTextLayout layout(str, f); |