From 45e2fce7c01c5046832990058697876add0e0547 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 12 Mar 2016 21:55:26 -0500 Subject: common_types: Specify const in deleted copy constructor/assignment operator --- src/common/common_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/common_types.h b/src/common/common_types.h index fa3e0b8d6..1384b7f6f 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h @@ -56,6 +56,6 @@ protected: NonCopyable() = default; ~NonCopyable() = default; - NonCopyable(NonCopyable&) = delete; - NonCopyable& operator=(NonCopyable&) = delete; + NonCopyable(const NonCopyable&) = delete; + NonCopyable& operator=(const NonCopyable&) = delete; }; -- cgit v1.2.3 From 38376b833efb55a9cb452f22a783ae4411dd3926 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 12 Mar 2016 21:57:18 -0500 Subject: common_types: Make NonCopyable constructor constexpr --- src/common/common_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/common_types.h b/src/common/common_types.h index 1384b7f6f..9f51dff18 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h @@ -53,7 +53,7 @@ typedef u32 PAddr; ///< Represents a pointer in the ARM11 physical address space // An inheritable class to disallow the copy constructor and operator= functions class NonCopyable { protected: - NonCopyable() = default; + constexpr NonCopyable() = default; ~NonCopyable() = default; NonCopyable(const NonCopyable&) = delete; -- cgit v1.2.3