summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2017-12-30 20:44:23 -0500
committerKurt Hindenburg <[email protected]>2017-12-30 20:44:23 -0500
commit807a4f7342279ce92a55c4d3e1005c19ad67ad65 (patch)
tree7c05b30fa5539717eebf972febc3bb5dbc449708
parent140c26c1d577ac8f85dec16556d3f2bba64e5271 (diff)
Disable ColorSchemeWallpaper and CopySchemeManager copy constructor/assignment
-rw-r--r--src/ColorScheme.h2
-rw-r--r--src/ColorSchemeManager.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/ColorScheme.h b/src/ColorScheme.h
index ce109c4..d46c55f 100644
--- a/src/ColorScheme.h
+++ b/src/ColorScheme.h
@@ -56,6 +56,8 @@ public:
QString path() const;
private:
+ Q_DISABLE_COPY(ColorSchemeWallpaper)
+
QString _path;
QPixmap *_picture;
};
diff --git a/src/ColorSchemeManager.h b/src/ColorSchemeManager.h
index eb88f01..438130c 100644
--- a/src/ColorSchemeManager.h
+++ b/src/ColorSchemeManager.h
@@ -89,6 +89,8 @@ public:
static ColorSchemeManager *instance();
private:
+ Q_DISABLE_COPY(ColorSchemeManager)
+
// loads a color scheme from a KDE 4+ .colorscheme file
bool loadColorScheme(const QString &path);
// returns a list of paths of color schemes in the KDE 4+ .colorscheme file format