diff options
Diffstat (limited to 'autotests/kconfig_compiler')
-rw-r--r-- | autotests/kconfig_compiler/test1main.cpp | 6 | ||||
-rw-r--r-- | autotests/kconfig_compiler/test4main.cpp | 6 | ||||
-rw-r--r-- | autotests/kconfig_compiler/test9main.cpp | 2 |
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); |