Fix build of QImageReader tests with QT_USE_QSTRINGBUILDER.
Change-Id: I789d99d0741bc178d2d7fd82558edc684eb6daf8 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>bb10
parent
e28be90dea
commit
98ecbf1f50
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue