summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-04-28 00:29:51 +0200
committerbunnei <ericbunnie@gmail.com>2014-04-28 00:29:51 +0200
commita48c6b947d5314ab804f375cca22af159cc3b77b (patch)
tree5f49ac6edc39d37c9b49514217957b47e73505f2
parentfixed weird spacing (diff)
downloadyuzu-a48c6b947d5314ab804f375cca22af159cc3b77b.tar
yuzu-a48c6b947d5314ab804f375cca22af159cc3b77b.tar.gz
yuzu-a48c6b947d5314ab804f375cca22af159cc3b77b.tar.bz2
yuzu-a48c6b947d5314ab804f375cca22af159cc3b77b.tar.lz
yuzu-a48c6b947d5314ab804f375cca22af159cc3b77b.tar.xz
yuzu-a48c6b947d5314ab804f375cca22af159cc3b77b.tar.zst
yuzu-a48c6b947d5314ab804f375cca22af159cc3b77b.zip
-rw-r--r--src/common/common.h5
-rw-r--r--src/core/arm/arm_interface.h3
-rw-r--r--src/core/arm/interpreter/arm_interpreter.h1
-rw-r--r--src/core/hle/service/gsp.h3
-rw-r--r--src/core/hle/service/hid.h3
-rw-r--r--src/core/hle/service/srv.h3
-rw-r--r--src/video_core/renderer_base.h4
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.h1
8 files changed, 2 insertions, 21 deletions
diff --git a/src/common/common.h b/src/common/common.h
index a281b21cc..418757855 100644
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -159,9 +159,4 @@ enum EMUSTATE_CHANGE
EMUSTATE_CHANGE_STOP
};
-// This should be used in the private: declarations for a class
-#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
- TypeName(const TypeName&); \
- void operator=(const TypeName&)
-
#endif // _COMMON_H_
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index eee4726db..4dfe0570b 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -8,7 +8,7 @@
#include "common/common_types.h"
/// Generic ARM11 CPU interface
-class ARM_Interface {
+class ARM_Interface : NonCopyable {
public:
ARM_Interface() {
m_num_instructions = 0;
@@ -75,5 +75,4 @@ private:
u64 m_num_instructions; ///< Number of instructions executed
- DISALLOW_COPY_AND_ASSIGN(ARM_Interface);
};
diff --git a/src/core/arm/interpreter/arm_interpreter.h b/src/core/arm/interpreter/arm_interpreter.h
index f3c86f8dd..625c0c652 100644
--- a/src/core/arm/interpreter/arm_interpreter.h
+++ b/src/core/arm/interpreter/arm_interpreter.h
@@ -63,5 +63,4 @@ private:
ARMul_State* m_state;
- DISALLOW_COPY_AND_ASSIGN(ARM_Interpreter);
};
diff --git a/src/core/hle/service/gsp.h b/src/core/hle/service/gsp.h
index 3b1846082..5ba09ab70 100644
--- a/src/core/hle/service/gsp.h
+++ b/src/core/hle/service/gsp.h
@@ -27,9 +27,6 @@ public:
return "gsp::Gpu";
}
-private:
-
- DISALLOW_COPY_AND_ASSIGN(Interface);
};
} // namespace
diff --git a/src/core/hle/service/hid.h b/src/core/hle/service/hid.h
index 746c1b1fc..b17fcfa86 100644
--- a/src/core/hle/service/hid.h
+++ b/src/core/hle/service/hid.h
@@ -29,9 +29,6 @@ public:
return "hid:USER";
}
-private:
-
- DISALLOW_COPY_AND_ASSIGN(Interface);
};
} // namespace
diff --git a/src/core/hle/service/srv.h b/src/core/hle/service/srv.h
index d9ac8fc88..760c976b4 100644
--- a/src/core/hle/service/srv.h
+++ b/src/core/hle/service/srv.h
@@ -32,9 +32,6 @@ public:
*/
Syscall::Result Sync();
-private:
-
- DISALLOW_COPY_AND_ASSIGN(Interface);
};
} // namespace
diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.h
index bc65bf0ce..2650620b4 100644
--- a/src/video_core/renderer_base.h
+++ b/src/video_core/renderer_base.h
@@ -6,7 +6,7 @@
#include "common/common.h"
-class RendererBase {
+class RendererBase : NonCopyable {
public:
/// Used to reference a framebuffer
@@ -52,6 +52,4 @@ protected:
f32 m_current_fps; ///< Current framerate, should be set by the renderer
int m_current_frame; ///< Current frame, should be set by the renderer
-private:
- DISALLOW_COPY_AND_ASSIGN(RendererBase);
};
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h
index 676a0ea02..4c0b6e59d 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.h
+++ b/src/video_core/renderer_opengl/renderer_opengl.h
@@ -87,5 +87,4 @@ private:
u8 m_xfb_top_flipped[VideoCore::kScreenTopWidth * VideoCore::kScreenTopWidth * 4];
u8 m_xfb_bottom_flipped[VideoCore::kScreenTopWidth * VideoCore::kScreenTopWidth * 4];
- DISALLOW_COPY_AND_ASSIGN(RendererOpenGL);
}; \ No newline at end of file