Fix build of QImageReader tests with QT_USE_QSTRINGBUILDER.

Change-Id: I789d99d0741bc178d2d7fd82558edc684eb6daf8
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
bb10
Stephen Kelly 2012-02-29 12:50:23 +01:00 committed by Qt by Nokia
parent e28be90dea
commit 98ecbf1f50
1 changed files with 1 additions and 1 deletions

View File

@ -1368,7 +1368,7 @@ void tst_QImageReader::readFromResources()
SKIP_IF_UNSUPPORTED(format);
for (int i = 0; i < 2; ++i) {
QString file = i ? (":/images/" + fileName) : (prefix + fileName);
QString file = i ? QString(QStringLiteral(":/images/") + fileName) : QString(prefix + fileName);
{
// suppress warnings if we expect them
if (!message.isEmpty()) {