Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYujia Qiao <rapiz3142@gmail.com>2021-10-23 18:47:16 +0300
committerHannah von Reth <vonreth@kde.org>2021-10-29 12:25:40 +0300
commit3465795ebb2d8dd84f2aa9a3a18ac7b7ac5133d2 (patch)
treed7222f0ca8f8edb32b910671f3fe20ab9b7b3096
parentddc2126446127fe7f0c74106dc6403bd2043a4b8 (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.cpp2
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);