mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-15 09:17:28 -05:00
Make copy constructor and assignment operator of singleton classes private.
This commit is contained in:
parent
f43ad8d062
commit
c6253fc025
@ -34,6 +34,8 @@ private:
|
|||||||
|
|
||||||
QScopedPointer<QSettings> m_settings;
|
QScopedPointer<QSettings> m_settings;
|
||||||
|
|
||||||
|
Q_DISABLE_COPY(Config)
|
||||||
|
|
||||||
friend Config* config();
|
friend Config* config();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,6 +34,8 @@ private:
|
|||||||
|
|
||||||
QString m_basePath;
|
QString m_basePath;
|
||||||
|
|
||||||
|
Q_DISABLE_COPY(DataPath)
|
||||||
|
|
||||||
friend DataPath* dataPath();
|
friend DataPath* dataPath();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,6 +38,8 @@ private:
|
|||||||
QVector<QImage> m_iconCache;
|
QVector<QImage> m_iconCache;
|
||||||
QVector<QPixmapCache::Key> m_pixmapCacheKeys;
|
QVector<QPixmapCache::Key> m_pixmapCacheKeys;
|
||||||
|
|
||||||
|
Q_DISABLE_COPY(DatabaseIcons)
|
||||||
|
|
||||||
friend DatabaseIcons* databaseIcons();
|
friend DatabaseIcons* databaseIcons();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -40,6 +40,8 @@ private:
|
|||||||
FileDialog();
|
FileDialog();
|
||||||
QString m_nextFileName;
|
QString m_nextFileName;
|
||||||
|
|
||||||
|
Q_DISABLE_COPY(FileDialog)
|
||||||
|
|
||||||
friend FileDialog* fileDialog();
|
friend FileDialog* fileDialog();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user