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/widgets/sp-color-selector.h | 4 ++-- src/widgets/toolbox.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/sp-color-selector.h b/src/widgets/sp-color-selector.h index 14a9fccdf..f5c194249 100644 --- a/src/widgets/sp-color-selector.h +++ b/src/widgets/sp-color-selector.h @@ -46,8 +46,8 @@ protected: private: // By default, disallow copy constructor and assignment operator - ColorSelector( const ColorSelector& obj ); - ColorSelector& operator=( const ColorSelector& obj ); + ColorSelector( const ColorSelector& obj ) = delete; + ColorSelector& operator=( const ColorSelector& obj ) = delete; gboolean _held; diff --git a/src/widgets/toolbox.h b/src/widgets/toolbox.h index ab1dcdfbd..a61130d33 100644 --- a/src/widgets/toolbox.h +++ b/src/widgets/toolbox.h @@ -63,7 +63,7 @@ public: static GtkIconSize prefToSize(Glib::ustring const &path, int base = 0 ); private: - ToolboxFactory(); + ToolboxFactory() = delete; }; /** -- cgit v1.2.3