aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2015-08-16 14:00:54 +0200
committerMontel Laurent <montel@kde.org>2015-08-16 14:00:54 +0200
commit4de3053788974c1f7b7b4926f006e29c7a3b250d (patch)
tree3ba994acb5542918010241a370d6901b3121da7e /src
parent2716b453a5cb859184784e12c3e0dc5f701fc984 (diff)
downloadkconfig-4de3053788974c1f7b7b4926f006e29c7a3b250d.tar.gz
kconfig-4de3053788974c1f7b7b4926f006e29c7a3b250d.tar.bz2
Rename private class to avoid exporting it accidentally
Diffstat (limited to 'src')
-rw-r--r--src/core/kconfigbackend.cpp6
-rw-r--r--src/core/kconfigbackend.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/core/kconfigbackend.cpp b/src/core/kconfigbackend.cpp
index bf2bc9c7..67bdefa4 100644
--- a/src/core/kconfigbackend.cpp
+++ b/src/core/kconfigbackend.cpp
@@ -35,7 +35,7 @@
typedef QExplicitlySharedDataPointer<KConfigBackend> BackendPtr;
-class KConfigBackend::Private
+class KConfigBackendPrivate
{
public:
qint64 size;
@@ -55,7 +55,7 @@ void KConfigBackend::registerMappings(const KEntryMap & /*entryMap*/)
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);
+ const QString system = (sys.isEmpty() ? KConfigBackendPrivate::whatSystem(file) : sys);
KConfigBackend *backend = Q_NULLPTR;
#if 0 // TODO port to Qt5 plugin loading
@@ -82,7 +82,7 @@ BackendPtr KConfigBackend::create(const QString &file, const QString &sys)
}
KConfigBackend::KConfigBackend()
- : d(new Private)
+ : d(new KConfigBackendPrivate)
{
}
diff --git a/src/core/kconfigbackend.h b/src/core/kconfigbackend.h
index 550bf396..631769be 100644
--- a/src/core/kconfigbackend.h
+++ b/src/core/kconfigbackend.h
@@ -29,6 +29,7 @@
#include <kconfigcore_export.h>
#include <kconfigbase.h>
+class KConfigBackendPrivate;
class KEntryMap;
class QFile;
@@ -194,8 +195,7 @@ protected:
void setLocalFilePath(const QString &file);
private:
- class Private;
- Private *const d;
+ KConfigBackendPrivate *const d;
};
Q_DECLARE_OPERATORS_FOR_FLAGS(KConfigBackend::ParseOptions)