diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/common.h | 5 | ||||
| -rw-r--r-- | src/core/arm/arm_interface.h | 3 | ||||
| -rw-r--r-- | src/core/arm/interpreter/arm_interpreter.h | 1 | ||||
| -rw-r--r-- | src/core/hle/service/gsp.h | 3 | ||||
| -rw-r--r-- | src/core/hle/service/hid.h | 3 | ||||
| -rw-r--r-- | src/core/hle/service/srv.h | 3 | ||||
| -rw-r--r-- | src/video_core/renderer_base.h | 4 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.h | 1 |
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 | |||
| 159 | EMUSTATE_CHANGE_STOP | 159 | EMUSTATE_CHANGE_STOP |
| 160 | }; | 160 | }; |
| 161 | 161 | ||
| 162 | // This should be used in the private: declarations for a class | ||
| 163 | #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ | ||
| 164 | TypeName(const TypeName&); \ | ||
| 165 | void operator=(const TypeName&) | ||
| 166 | |||
| 167 | #endif // _COMMON_H_ | 162 | #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 @@ | |||
| 8 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 9 | 9 | ||
| 10 | /// Generic ARM11 CPU interface | 10 | /// Generic ARM11 CPU interface |
| 11 | class ARM_Interface { | 11 | class ARM_Interface : NonCopyable { |
| 12 | public: | 12 | public: |
| 13 | ARM_Interface() { | 13 | ARM_Interface() { |
| 14 | m_num_instructions = 0; | 14 | m_num_instructions = 0; |
| @@ -75,5 +75,4 @@ private: | |||
| 75 | 75 | ||
| 76 | u64 m_num_instructions; ///< Number of instructions executed | 76 | u64 m_num_instructions; ///< Number of instructions executed |
| 77 | 77 | ||
| 78 | DISALLOW_COPY_AND_ASSIGN(ARM_Interface); | ||
| 79 | }; | 78 | }; |
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: | |||
| 63 | 63 | ||
| 64 | ARMul_State* m_state; | 64 | ARMul_State* m_state; |
| 65 | 65 | ||
| 66 | DISALLOW_COPY_AND_ASSIGN(ARM_Interpreter); | ||
| 67 | }; | 66 | }; |
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: | |||
| 27 | return "gsp::Gpu"; | 27 | return "gsp::Gpu"; |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | private: | ||
| 31 | |||
| 32 | DISALLOW_COPY_AND_ASSIGN(Interface); | ||
| 33 | }; | 30 | }; |
| 34 | 31 | ||
| 35 | } // namespace | 32 | } // 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: | |||
| 29 | return "hid:USER"; | 29 | return "hid:USER"; |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | private: | ||
| 33 | |||
| 34 | DISALLOW_COPY_AND_ASSIGN(Interface); | ||
| 35 | }; | 32 | }; |
| 36 | 33 | ||
| 37 | } // namespace | 34 | } // 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: | |||
| 32 | */ | 32 | */ |
| 33 | Syscall::Result Sync(); | 33 | Syscall::Result Sync(); |
| 34 | 34 | ||
| 35 | private: | ||
| 36 | |||
| 37 | DISALLOW_COPY_AND_ASSIGN(Interface); | ||
| 38 | }; | 35 | }; |
| 39 | 36 | ||
| 40 | } // namespace | 37 | } // 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 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/common.h" | 7 | #include "common/common.h" |
| 8 | 8 | ||
| 9 | class RendererBase { | 9 | class RendererBase : NonCopyable { |
| 10 | public: | 10 | public: |
| 11 | 11 | ||
| 12 | /// Used to reference a framebuffer | 12 | /// Used to reference a framebuffer |
| @@ -52,6 +52,4 @@ protected: | |||
| 52 | f32 m_current_fps; ///< Current framerate, should be set by the renderer | 52 | f32 m_current_fps; ///< Current framerate, should be set by the renderer |
| 53 | int m_current_frame; ///< Current frame, should be set by the renderer | 53 | int m_current_frame; ///< Current frame, should be set by the renderer |
| 54 | 54 | ||
| 55 | private: | ||
| 56 | DISALLOW_COPY_AND_ASSIGN(RendererBase); | ||
| 57 | }; | 55 | }; |
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: | |||
| 87 | u8 m_xfb_top_flipped[VideoCore::kScreenTopWidth * VideoCore::kScreenTopWidth * 4]; | 87 | u8 m_xfb_top_flipped[VideoCore::kScreenTopWidth * VideoCore::kScreenTopWidth * 4]; |
| 88 | u8 m_xfb_bottom_flipped[VideoCore::kScreenTopWidth * VideoCore::kScreenTopWidth * 4]; | 88 | u8 m_xfb_bottom_flipped[VideoCore::kScreenTopWidth * VideoCore::kScreenTopWidth * 4]; |
| 89 | 89 | ||
| 90 | DISALLOW_COPY_AND_ASSIGN(RendererOpenGL); | ||
| 91 | }; \ No newline at end of file | 90 | }; \ No newline at end of file |