aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2017-11-30 13:36:08 +0100
committerMontel Laurent <montel@kde.org>2017-11-30 13:36:08 +0100
commitee2b394599ffe1242e3b7ae7d40b3469485dcd97 (patch)
treeb3158f3dc11d26bc5676015b4c56e55a85f4c71b /autotests/kconfig_compiler
parent61995dafce78c1065d4eacba81673a7959a96cc9 (diff)
downloadkconfig-ee2b394599ffe1242e3b7ae7d40b3469485dcd97.tar.gz
kconfig-ee2b394599ffe1242e3b7ae7d40b3469485dcd97.tar.bz2
Fix some clazy warning
Diffstat (limited to 'autotests/kconfig_compiler')
-rw-r--r--autotests/kconfig_compiler/test1main.cpp6
-rw-r--r--autotests/kconfig_compiler/test4main.cpp6
-rw-r--r--autotests/kconfig_compiler/test9main.cpp2
3 files changed, 7 insertions, 7 deletions
diff --git a/autotests/kconfig_compiler/test1main.cpp b/autotests/kconfig_compiler/test1main.cpp
index 8ab7838c..1f9d32ad 100644
--- a/autotests/kconfig_compiler/test1main.cpp
+++ b/autotests/kconfig_compiler/test1main.cpp
@@ -29,9 +29,9 @@ int main(int argc, char **argv)
Q_UNUSED(app);
{
- KConfig initialConfig(QLatin1String("examplerc"));
- KConfigGroup group = initialConfig.group(QLatin1String("MyOptions"));
- group.writeEntry(QLatin1String("MyString"), QStringLiteral("The String"));
+ KConfig initialConfig(QStringLiteral("examplerc"));
+ KConfigGroup group = initialConfig.group(QStringLiteral("MyOptions"));
+ group.writeEntry(QStringLiteral("MyString"), QStringLiteral("The String"));
}
Test1 *t = new Test1(QString(), QString());
diff --git a/autotests/kconfig_compiler/test4main.cpp b/autotests/kconfig_compiler/test4main.cpp
index b4569ba9..72499230 100644
--- a/autotests/kconfig_compiler/test4main.cpp
+++ b/autotests/kconfig_compiler/test4main.cpp
@@ -29,9 +29,9 @@ int main(int argc, char **argv)
QGuiApplication app(argc, argv);
Q_UNUSED(app);
{
- KConfig initialConfig(QLatin1String("test4rc"));
- KConfigGroup group = initialConfig.group(QLatin1String("Foo"));
- group.writeEntry(QLatin1String("foo bar"), QStringLiteral("Value"));
+ KConfig initialConfig(QStringLiteral("test4rc"));
+ KConfigGroup group = initialConfig.group(QStringLiteral("Foo"));
+ group.writeEntry(QStringLiteral("foo bar"), QStringLiteral("Value"));
}
Test4 *t = Test4::self();
bool ok = QFile::exists(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/test4rc");
diff --git a/autotests/kconfig_compiler/test9main.cpp b/autotests/kconfig_compiler/test9main.cpp
index 28205ee5..8ec98adb 100644
--- a/autotests/kconfig_compiler/test9main.cpp
+++ b/autotests/kconfig_compiler/test9main.cpp
@@ -34,7 +34,7 @@ int main(int argc, char **argv)
// add another path
QStringList newlist;
- myPathsList2 << QDir::homePath() + QString::fromLatin1("/.kde");
+ myPathsList2 << QDir::homePath() + QLatin1String("/.kde");
qWarning() << myPathsList2;
t->setMyPathsList2(myPathsList2);