summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-06 06:56:18 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-07 04:45:04 +0200
commit7a4b717772daf91819170caf32a71baa845c46ea (patch)
treee6c67a14185ed63f3cf1af22ba79038f5141de30 /src
parentCommon: Remove unused enums (diff)
downloadyuzu-7a4b717772daf91819170caf32a71baa845c46ea.tar
yuzu-7a4b717772daf91819170caf32a71baa845c46ea.tar.gz
yuzu-7a4b717772daf91819170caf32a71baa845c46ea.tar.bz2
yuzu-7a4b717772daf91819170caf32a71baa845c46ea.tar.lz
yuzu-7a4b717772daf91819170caf32a71baa845c46ea.tar.xz
yuzu-7a4b717772daf91819170caf32a71baa845c46ea.tar.zst
yuzu-7a4b717772daf91819170caf32a71baa845c46ea.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/common.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/common/common.h b/src/common/common.h
index d11e57b1e..d64635620 100644
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -14,15 +14,13 @@
#define STACKALIGN
// An inheritable class to disallow the copy constructor and operator= functions
-class NonCopyable
-{
+class NonCopyable {
protected:
- NonCopyable() {}
- NonCopyable(const NonCopyable&&) {}
- void operator=(const NonCopyable&&) {}
-private:
- NonCopyable(NonCopyable&);
- NonCopyable& operator=(NonCopyable& other);
+ NonCopyable() = default;
+ ~NonCopyable() = default;
+
+ NonCopyable(NonCopyable&) = delete;
+ NonCopyable& operator=(NonCopyable&) = delete;
};
#include "common/assert.h"