Rename private class to avoid exporting it accidentally

wilder
Montel Laurent 11 years ago
parent 2716b453a5
commit 4de3053788
  1. 6
      src/core/kconfigbackend.cpp
  2. 4
      src/core/kconfigbackend.h

@ -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)
{
}

@ -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)

Loading…
Cancel
Save