From e4afb390e9d056f4e7758eda7d432612fbcb167c Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 15 Apr 2018 02:07:21 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-equals-delet?= =?UTF-8?q?e=20pass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a delete specifier on constructors, destructors or assignment methods that should never be called, ensuring they actually never will. --- src/ui/tools/tool-base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/tools') diff --git a/src/ui/tools/tool-base.h b/src/ui/tools/tool-base.h index 7185b787e..7cb292aa4 100644 --- a/src/ui/tools/tool-base.h +++ b/src/ui/tools/tool-base.h @@ -227,8 +227,8 @@ protected: bool sp_event_context_knot_mouseover() const; private: - ToolBase(const ToolBase&); - ToolBase& operator=(const ToolBase&); + ToolBase(const ToolBase&) = delete; + ToolBase& operator=(const ToolBase&) = delete; bool _keyboardMove(GdkEventKey const &event, Geom::Point const &dir); -- cgit v1.2.3