From ac6703215ba5e152379173ba503f5ba3bd7e8a85 Mon Sep 17 00:00:00 2001 From: Thomas Braxton Date: Wed, 11 Jun 2014 08:40:44 -0500 Subject: 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 --- src/core/kconfigbackend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/kconfigbackend.cpp') 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(0); + backend = offer->createInstance(Q_NULLPTR); if (backend) { //qDebug() << "successfully created a backend for" << system; backend->setFilePath(file); -- cgit v1.2.1