Code cleanup, use '= delete'

This commit is contained in:
Daniel Marjamäki 2018-05-28 12:44:18 +02:00
parent 02c8a1d61c
commit c2c43ce8a7
2 changed files with 6 additions and 6 deletions

View File

@ -185,8 +185,8 @@ private:
const std::string _name; const std::string _name;
/** disabled assignment operator and copy constructor */ /** disabled assignment operator and copy constructor */
void operator=(const Check &); void operator=(const Check &) = delete;
Check(const Check &); Check(const Check &) = delete;
}; };
/// @} /// @}

View File

@ -817,11 +817,11 @@ public:
} }
private: private:
/** Disable copy constructor, no implementation */ /** Disable copy constructor */
Tokenizer(const Tokenizer &); Tokenizer(const Tokenizer &) = delete;
/** Disable assignment operator, no implementation */ /** Disable assignment operator */
Tokenizer &operator=(const Tokenizer &); Tokenizer &operator=(const Tokenizer &) = delete;
Token *processFunc(Token *tok2, bool inOperator) const; Token *processFunc(Token *tok2, bool inOperator) const;