Make copy constructor and assignment operator of singleton classes private.

This commit is contained in:
Felix Geyer 2012-05-26 16:45:59 +02:00
parent f43ad8d062
commit c6253fc025
4 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,8 @@ private:
QScopedPointer<QSettings> m_settings;
Q_DISABLE_COPY(Config)
friend Config* config();
};

View File

@ -34,6 +34,8 @@ private:
QString m_basePath;
Q_DISABLE_COPY(DataPath)
friend DataPath* dataPath();
};

View File

@ -38,6 +38,8 @@ private:
QVector<QImage> m_iconCache;
QVector<QPixmapCache::Key> m_pixmapCacheKeys;
Q_DISABLE_COPY(DatabaseIcons)
friend DatabaseIcons* databaseIcons();
};

View File

@ -40,6 +40,8 @@ private:
FileDialog();
QString m_nextFileName;
Q_DISABLE_COPY(FileDialog)
friend FileDialog* fileDialog();
};