mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-02 19:41:34 +00:00
Mark State copy constructor and assignment operators as delete
This commit is contained in:
parent
e07d8f3066
commit
755fef62f7
1 changed files with 4 additions and 5 deletions
|
@ -51,11 +51,6 @@ namespace CSMPrefs
|
||||||
Iterator mCurrentCategory;
|
Iterator mCurrentCategory;
|
||||||
QMutex mMutex;
|
QMutex mMutex;
|
||||||
|
|
||||||
// not implemented
|
|
||||||
State(const State&);
|
|
||||||
State& operator=(const State&);
|
|
||||||
|
|
||||||
private:
|
|
||||||
void declare();
|
void declare();
|
||||||
|
|
||||||
void declareCategory(const std::string& key);
|
void declareCategory(const std::string& key);
|
||||||
|
@ -82,8 +77,12 @@ namespace CSMPrefs
|
||||||
public:
|
public:
|
||||||
State(const Files::ConfigurationManager& configurationManager);
|
State(const Files::ConfigurationManager& configurationManager);
|
||||||
|
|
||||||
|
State(const State&) = delete;
|
||||||
|
|
||||||
~State();
|
~State();
|
||||||
|
|
||||||
|
State& operator=(const State&) = delete;
|
||||||
|
|
||||||
void save();
|
void save();
|
||||||
|
|
||||||
Iterator begin();
|
Iterator begin();
|
||||||
|
|
Loading…
Reference in a new issue