diff options
author | Laurent Montel <montel@kde.org> | 2019-08-28 13:58:56 +0200 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2019-08-28 13:59:13 +0200 |
commit | b0191f68562d896a3e962a534ff0c26ae72de2de (patch) | |
tree | 77e3480f9ac0f352e95c269dfff8d70cad7d0a1e | |
parent | b4d33f4419f8f8626f690e11e46dcff25586b35b (diff) | |
download | kconfig-b0191f68562d896a3e962a534ff0c26ae72de2de.tar.gz kconfig-b0191f68562d896a3e962a534ff0c26ae72de2de.tar.bz2 |
GIT_SILENT: use QLatin1String
-rw-r--r-- | autotests/kconfig_compiler/test4main.cpp | 2 | ||||
-rw-r--r-- | src/core/kconfigini.cpp | 2 | ||||
-rw-r--r-- | src/core/kdesktopfile.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/autotests/kconfig_compiler/test4main.cpp b/autotests/kconfig_compiler/test4main.cpp index 72499230..2c63e13e 100644 --- a/autotests/kconfig_compiler/test4main.cpp +++ b/autotests/kconfig_compiler/test4main.cpp @@ -38,7 +38,7 @@ int main(int argc, char **argv) if (!ok) { qWarning() << "config file was not created!"; } - if (t->fooBar() != QStringLiteral("Value")) { + if (t->fooBar() != QLatin1String("Value")) { qWarning() << "wrong value for foo bar:" << t->fooBar(); } delete t; diff --git a/src/core/kconfigini.cpp b/src/core/kconfigini.cpp index d07b59c6..798ce571 100644 --- a/src/core/kconfigini.cpp +++ b/src/core/kconfigini.cpp @@ -230,7 +230,7 @@ KConfigIniBackend::parseConfig(const QByteArray ¤tLocale, KEntryMap &entry break; case 'd': entryOptions |= KEntryMap::EntryDeleted; - aKey = aKey.left(start); + aKey.truncate(start); printableToString(&aKey, file, lineNo); entryMap.setEntry(currentGroup, aKey.toByteArray(), QByteArray(), entryOptions); goto next_line; diff --git a/src/core/kdesktopfile.cpp b/src/core/kdesktopfile.cpp index 367a7d8b..d34400eb 100644 --- a/src/core/kdesktopfile.cpp +++ b/src/core/kdesktopfile.cpp @@ -375,12 +375,12 @@ bool KDesktopFile::noDisplay() const return true; } if (d->desktopGroup.hasKey("OnlyShowIn")) { - if (!d->desktopGroup.readXdgListEntry("OnlyShowIn").contains(QStringLiteral("KDE"))) { + if (!d->desktopGroup.readXdgListEntry("OnlyShowIn").contains(QLatin1String("KDE"))) { return true; } } if (d->desktopGroup.hasKey("NotShowIn")) { - if (d->desktopGroup.readXdgListEntry("NotShowIn").contains(QStringLiteral("KDE"))) { + if (d->desktopGroup.readXdgListEntry("NotShowIn").contains(QLatin1String("KDE"))) { return true; } } |