From bf0d42abd7fd9151b45aa0186888e3e85175f848 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Wed, 19 Aug 2015 10:48:22 +0200 Subject: Rename private class to avoid exporting it accidentally --- src/core/kcoreconfigskeleton.cpp | 4 ++-- src/core/kcoreconfigskeleton.h | 4 ++-- src/core/kcoreconfigskeleton_p.h | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/core/kcoreconfigskeleton.cpp b/src/core/kcoreconfigskeleton.cpp index 1569a94f..293387bd 100644 --- a/src/core/kcoreconfigskeleton.cpp +++ b/src/core/kcoreconfigskeleton.cpp @@ -987,7 +987,7 @@ QVariant KCoreConfigSkeleton::ItemIntList::property() const KCoreConfigSkeleton::KCoreConfigSkeleton(const QString &configname, QObject *parent) : QObject(parent), - d(new Private) + d(new KCoreConfigSkeletonPrivate) { //qDebug() << "Creating KCoreConfigSkeleton (" << (void *)this << ")"; @@ -996,7 +996,7 @@ KCoreConfigSkeleton::KCoreConfigSkeleton(const QString &configname, QObject *par KCoreConfigSkeleton::KCoreConfigSkeleton(KSharedConfig::Ptr pConfig, QObject *parent) : QObject(parent), - d(new Private) + d(new KCoreConfigSkeletonPrivate) { //qDebug() << "Creating KCoreConfigSkeleton (" << (void *)this << ")"; d->mConfig = pConfig; diff --git a/src/core/kcoreconfigskeleton.h b/src/core/kcoreconfigskeleton.h index ed11709b..ea17c7cc 100644 --- a/src/core/kcoreconfigskeleton.h +++ b/src/core/kcoreconfigskeleton.h @@ -34,6 +34,7 @@ #include #include #include +class KCoreConfigSkeletonPrivate; class KConfigSkeletonItemPrivate; /** @@ -1484,8 +1485,7 @@ protected: KCONFIGCORE_DEPRECATED virtual bool usrWriteConfig(); private: - class Private; - Private *const d; + KCoreConfigSkeletonPrivate *const d; friend class KConfigSkeleton; }; diff --git a/src/core/kcoreconfigskeleton_p.h b/src/core/kcoreconfigskeleton_p.h index 0b020ed3..d098ef66 100644 --- a/src/core/kcoreconfigskeleton_p.h +++ b/src/core/kcoreconfigskeleton_p.h @@ -24,13 +24,13 @@ #include "kcoreconfigskeleton.h" -class KCoreConfigSkeleton::Private +class KCoreConfigSkeletonPrivate { public: - Private() + KCoreConfigSkeletonPrivate() : mCurrentGroup(QLatin1String("No Group")), mUseDefaults(false) {} - ~Private() + ~KCoreConfigSkeletonPrivate() { KConfigSkeletonItem::List::ConstIterator it; for (it = mItems.constBegin(); it != mItems.constEnd(); ++it) { -- cgit v1.2.1