diff options
author | Yujia Qiao <rapiz3142@gmail.com> | 2021-10-23 18:47:16 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-10-29 12:25:40 +0300 |
commit | 3465795ebb2d8dd84f2aa9a3a18ac7b7ac5133d2 (patch) | |
tree | d7222f0ca8f8edb32b910671f3fe20ab9b7b3096 | |
parent | ddc2126446127fe7f0c74106dc6403bd2043a4b8 (diff) |
Fix gcc format string error
Use non-literal format string will make recent gcc fail to compile. This
commit address the issue to make gcc happy.
-rw-r--r-- | test/testutility.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testutility.cpp b/test/testutility.cpp index 76308a967..af09e3aeb 100644 --- a/test/testutility.cpp +++ b/test/testutility.cpp @@ -199,7 +199,7 @@ private slots: const auto add = [](const QString &child, const QString &parent, bool result, bool casePreserving = true) { const auto title = QStringLiteral("CasePreserving %1: %2 is %3 child of %4").arg(casePreserving ? QStringLiteral("yes") : QStringLiteral("no"), child, result ? QString() : QStringLiteral("not"), parent); - QTest::addRow(qUtf8Printable(title)) << child << parent << result << casePreserving; + QTest::addRow("%s", qUtf8Printable(title)) << child << parent << result << casePreserving; }; add(QStringLiteral("/A/a"), QStringLiteral("/A"), true); add(QStringLiteral("/A/a"), QStringLiteral("/A/a"), true); |