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;
/** disabled assignment operator and copy constructor */
void operator=(const Check &);
Check(const Check &);
void operator=(const Check &) = delete;
Check(const Check &) = delete;
};
/// @}

View File

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