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/auto/corelib/tools/qstring/tst_qstring.cpp | |
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/auto/corelib/tools/qstring/tst_qstring.cpp')
-rw-r--r-- | tests/auto/corelib/tools/qstring/tst_qstring.cpp | 2 |
1 files changed, 1 insertions, 1 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; |