From d9b551a382a3c0dc2213141923ff4e01bbd6fee1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 02:04:44 -0400 Subject: Clean up special member functions --- include/ingen/ColorContext.hpp | 5 +++++ include/ingen/Library.hpp | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ingen/ColorContext.hpp b/include/ingen/ColorContext.hpp index f33b7e2c..251812b8 100644 --- a/include/ingen/ColorContext.hpp +++ b/include/ingen/ColorContext.hpp @@ -31,6 +31,11 @@ public: ColorContext(FILE* stream, Color color); ~ColorContext(); + ColorContext(const ColorContext&) = delete; + ColorContext& operator=(const ColorContext&) = delete; + ColorContext(ColorContext&&) = delete; + ColorContext& operator=(ColorContext&) = delete; + private: FILE* _stream; }; diff --git a/include/ingen/Library.hpp b/include/ingen/Library.hpp index d7d7054a..4cee985f 100644 --- a/include/ingen/Library.hpp +++ b/include/ingen/Library.hpp @@ -29,8 +29,10 @@ public: Library(const FilePath& path); ~Library(); - Library(const Library&) = delete; + Library(const Library&) = delete; Library& operator=(const Library&) = delete; + Library(Library&&) = delete; + Library& operator=(Library&&) = delete; using VoidFuncPtr = void (*)(); -- cgit v1.2.1