aboutsummaryrefslogtreecommitdiff
path: root/src/core/kconfigbackend.cpp
diff options
context:
space:
mode:
authorThomas Braxton <kde.braxton@gmail.com>2014-06-11 08:40:44 -0500
committerThomas Braxton <kde.braxton@gmail.com>2014-06-12 17:14:16 -0500
commitac6703215ba5e152379173ba503f5ba3bd7e8a85 (patch)
treed3072f5a03ec66569d4e2f6770fbaa06090cd98f /src/core/kconfigbackend.cpp
parent0ed55dfa5d25bdcbef24f1b06be34467b620ae99 (diff)
downloadkconfig-ac6703215ba5e152379173ba503f5ba3bd7e8a85.tar.gz
kconfig-ac6703215ba5e152379173ba503f5ba3bd7e8a85.tar.bz2
Simple Cleanups
- use Q_NULLPTR instead of 0 or NULL - simplify some foreach loops - use QStringLiteral in a few places - added a few consts REVIEW: 118666
Diffstat (limited to 'src/core/kconfigbackend.cpp')
-rw-r--r--src/core/kconfigbackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/kconfigbackend.cpp b/src/core/kconfigbackend.cpp
index 90655fac..bf2bc9c7 100644
--- a/src/core/kconfigbackend.cpp
+++ b/src/core/kconfigbackend.cpp
@@ -56,7 +56,7 @@ BackendPtr KConfigBackend::create(const QString &file, const QString &sys)
{
//qDebug() << "creating a backend for file" << file << "with system" << sys;
const QString system = (sys.isEmpty() ? Private::whatSystem(file) : sys);
- KConfigBackend *backend = 0;
+ KConfigBackend *backend = Q_NULLPTR;
#if 0 // TODO port to Qt5 plugin loading
if (system.compare(QLatin1String("INI"), Qt::CaseInsensitive) != 0) {
@@ -65,7 +65,7 @@ BackendPtr KConfigBackend::create(const QString &file, const QString &sys)
//qDebug() << "found" << offers.count() << "offers for KConfigBackend plugins with name" << system;
foreach (const KService::Ptr &offer, offers) {
- backend = offer->createInstance<KConfigBackend>(0);
+ backend = offer->createInstance<KConfigBackend>(Q_NULLPTR);
if (backend) {
//qDebug() << "successfully created a backend for" << system;
backend->setFilePath(file);