From b8cb5e322c5f94af7a239ce2c0e9320a636e2a58 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 13 Jan 2019 22:30:55 +0100 Subject: [PATCH] delete copy constructor and assignment operator of some internal classes they are unused, but if anyone would use them things would go wrong, so protect us from it --- src/imageformats/xcf.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/imageformats/xcf.cpp b/src/imageformats/xcf.cpp index 5ca0f0d..758b65e 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -112,6 +112,9 @@ private: { delete[] name; } + + Layer(const Layer &) = delete; + Layer &operator=(const Layer &) = delete; }; /*!