diff options
author | Albert Astals Cid <aacid@kde.org> | 2015-10-05 15:16:16 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2015-10-05 15:16:16 +0200 |
commit | 788e2a5509d3072dde1c5243186e70e9dfedf5cc (patch) | |
tree | dafc0f730f4eac85a766f2ba653812c5fb377a03 /src/core/ksharedconfig.cpp | |
parent | 4ade818d2046f2c91df480386d04674619c1f5ed (diff) | |
download | kconfig-788e2a5509d3072dde1c5243186e70e9dfedf5cc.tar.gz kconfig-788e2a5509d3072dde1c5243186e70e9dfedf5cc.tar.bz2 |
Minor optimizations
Ran the clazy tool (http://www.kdab.com/use-static-analysis-improve-performance/)
Mostly QStringLiteral/QLatin1String additions
A few const & additions to non public methods
Compiles, test pass
REVIEW: 125106
Diffstat (limited to 'src/core/ksharedconfig.cpp')
-rw-r--r-- | src/core/ksharedconfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ksharedconfig.cpp b/src/core/ksharedconfig.cpp index e059b87a..8eb1308f 100644 --- a/src/core/ksharedconfig.cpp +++ b/src/core/ksharedconfig.cpp @@ -111,7 +111,7 @@ KSharedConfigPtr KSharedConfig::openConfig(const QString &_fileName, userWarned = true; QByteArray readOnly = qgetenv("KDE_HOME_READONLY"); if (readOnly.isEmpty() && QCoreApplication::applicationName() != QLatin1String("kdialog")) { - if (ptr->group("General").readEntry(QLatin1String("warn_unwritable_config"), true)) { + if (ptr->group("General").readEntry(QStringLiteral("warn_unwritable_config"), true)) { ptr->isConfigWritable(true); } } |