From 755fef62f73cc9d2aa7570b44fa0f40bf193f812 Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 12 Nov 2023 00:42:58 +0100 Subject: [PATCH] Mark State copy constructor and assignment operators as delete --- apps/opencs/model/prefs/state.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/opencs/model/prefs/state.hpp b/apps/opencs/model/prefs/state.hpp index 86d2c19da6..6119fbda1a 100644 --- a/apps/opencs/model/prefs/state.hpp +++ b/apps/opencs/model/prefs/state.hpp @@ -51,11 +51,6 @@ namespace CSMPrefs Iterator mCurrentCategory; QMutex mMutex; - // not implemented - State(const State&); - State& operator=(const State&); - - private: void declare(); void declareCategory(const std::string& key); @@ -82,8 +77,12 @@ namespace CSMPrefs public: State(const Files::ConfigurationManager& configurationManager); + State(const State&) = delete; + ~State(); + State& operator=(const State&) = delete; + void save(); Iterator begin();