diff options
| -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;          }      } | 
