From c2c43ce8a793253a524e1fe0066f3c850a3725f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 28 May 2018 12:44:18 +0200 Subject: [PATCH] Code cleanup, use '= delete' --- lib/check.h | 4 ++-- lib/tokenize.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/check.h b/lib/check.h index 8aa5c2026..179a362a7 100644 --- a/lib/check.h +++ b/lib/check.h @@ -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; }; /// @} diff --git a/lib/tokenize.h b/lib/tokenize.h index a8177df60..18307895c 100644 --- a/lib/tokenize.h +++ b/lib/tokenize.h @@ -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;