diff options
Diffstat (limited to 'tests/auto/tools/rcc/tst_rcc.cpp')
-rw-r--r-- | tests/auto/tools/rcc/tst_rcc.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/tools/rcc/tst_rcc.cpp b/tests/auto/tools/rcc/tst_rcc.cpp index 359ee7021e..9f4960fc7c 100644 --- a/tests/auto/tools/rcc/tst_rcc.cpp +++ b/tests/auto/tools/rcc/tst_rcc.cpp @@ -181,10 +181,8 @@ static QStringList readLinesFromFile(const QString &fileName, QFile file(fileName); bool ok = file.open(QIODevice::ReadOnly | QIODevice::Text); - if (!ok) { - QWARN(qPrintable(QString::fromLatin1("Could not open testdata file %1: %2") - .arg(fileName, file.errorString()))); - } + if (!ok) + qWarning() << "Could not open testdata file" << fileName << ":" << file.errorString(); return QString::fromUtf8(file.readAll()).split(QLatin1Char('\n'), splitBehavior); } |