diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hid/emulated_console.h | 1 | ||||
| -rw-r--r-- | src/core/hid/emulated_controller.h | 2 | ||||
| -rw-r--r-- | src/core/hid/hid_core.h | 1 | ||||
| -rw-r--r-- | src/core/hle/kernel/k_auto_object.h | 7 | ||||
| -rw-r--r-- | src/core/hle/kernel/k_auto_object_container.h | 4 | ||||
| -rw-r--r-- | src/core/hle/kernel/k_handle_table.h | 3 | ||||
| -rw-r--r-- | src/core/hle/service/vi/display/vi_display.h | 2 |
7 files changed, 9 insertions, 11 deletions
diff --git a/src/core/hid/emulated_console.h b/src/core/hid/emulated_console.h index 707419102..5eb170823 100644 --- a/src/core/hid/emulated_console.h +++ b/src/core/hid/emulated_console.h | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include <mutex> | 10 | #include <mutex> |
| 11 | #include <unordered_map> | 11 | #include <unordered_map> |
| 12 | 12 | ||
| 13 | #include "common/common_funcs.h" | ||
| 13 | #include "common/common_types.h" | 14 | #include "common/common_types.h" |
| 14 | #include "common/input.h" | 15 | #include "common/input.h" |
| 15 | #include "common/param_package.h" | 16 | #include "common/param_package.h" |
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index a63a83cce..d8642c5b3 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h | |||
| @@ -13,8 +13,6 @@ | |||
| 13 | #include "common/common_types.h" | 13 | #include "common/common_types.h" |
| 14 | #include "common/input.h" | 14 | #include "common/input.h" |
| 15 | #include "common/param_package.h" | 15 | #include "common/param_package.h" |
| 16 | #include "common/point.h" | ||
| 17 | #include "common/quaternion.h" | ||
| 18 | #include "common/settings.h" | 16 | #include "common/settings.h" |
| 19 | #include "common/vector_math.h" | 17 | #include "common/vector_math.h" |
| 20 | #include "core/hid/hid_types.h" | 18 | #include "core/hid/hid_types.h" |
diff --git a/src/core/hid/hid_core.h b/src/core/hid/hid_core.h index 837f7de49..717f605e7 100644 --- a/src/core/hid/hid_core.h +++ b/src/core/hid/hid_core.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include <memory> | 7 | #include <memory> |
| 8 | 8 | ||
| 9 | #include "common/common_funcs.h" | ||
| 9 | #include "core/hid/hid_types.h" | 10 | #include "core/hid/hid_types.h" |
| 10 | 11 | ||
| 11 | namespace Core::HID { | 12 | namespace Core::HID { |
diff --git a/src/core/hle/kernel/k_auto_object.h b/src/core/hle/kernel/k_auto_object.h index 165b76747..05779f2d5 100644 --- a/src/core/hle/kernel/k_auto_object.h +++ b/src/core/hle/kernel/k_auto_object.h | |||
| @@ -20,8 +20,6 @@ class KernelCore; | |||
| 20 | class KProcess; | 20 | class KProcess; |
| 21 | 21 | ||
| 22 | #define KERNEL_AUTOOBJECT_TRAITS(CLASS, BASE_CLASS) \ | 22 | #define KERNEL_AUTOOBJECT_TRAITS(CLASS, BASE_CLASS) \ |
| 23 | YUZU_NON_COPYABLE(CLASS); \ | ||
| 24 | YUZU_NON_MOVEABLE(CLASS); \ | ||
| 25 | \ | 23 | \ |
| 26 | private: \ | 24 | private: \ |
| 27 | friend class ::Kernel::KClassTokenGenerator; \ | 25 | friend class ::Kernel::KClassTokenGenerator; \ |
| @@ -32,6 +30,9 @@ private: | |||
| 32 | } \ | 30 | } \ |
| 33 | \ | 31 | \ |
| 34 | public: \ | 32 | public: \ |
| 33 | YUZU_NON_COPYABLE(CLASS); \ | ||
| 34 | YUZU_NON_MOVEABLE(CLASS); \ | ||
| 35 | \ | ||
| 35 | using BaseClass = BASE_CLASS; \ | 36 | using BaseClass = BASE_CLASS; \ |
| 36 | static constexpr TypeObj GetStaticTypeObj() { \ | 37 | static constexpr TypeObj GetStaticTypeObj() { \ |
| 37 | constexpr ClassTokenType Token = ClassToken(); \ | 38 | constexpr ClassTokenType Token = ClassToken(); \ |
| @@ -224,9 +225,9 @@ private: | |||
| 224 | 225 | ||
| 225 | template <typename T> | 226 | template <typename T> |
| 226 | class KScopedAutoObject { | 227 | class KScopedAutoObject { |
| 228 | public: | ||
| 227 | YUZU_NON_COPYABLE(KScopedAutoObject); | 229 | YUZU_NON_COPYABLE(KScopedAutoObject); |
| 228 | 230 | ||
| 229 | public: | ||
| 230 | constexpr KScopedAutoObject() = default; | 231 | constexpr KScopedAutoObject() = default; |
| 231 | 232 | ||
| 232 | constexpr KScopedAutoObject(T* o) : m_obj(o) { | 233 | constexpr KScopedAutoObject(T* o) : m_obj(o) { |
diff --git a/src/core/hle/kernel/k_auto_object_container.h b/src/core/hle/kernel/k_auto_object_container.h index 4eadfe99d..697cc4289 100644 --- a/src/core/hle/kernel/k_auto_object_container.h +++ b/src/core/hle/kernel/k_auto_object_container.h | |||
| @@ -16,13 +16,12 @@ class KernelCore; | |||
| 16 | class KProcess; | 16 | class KProcess; |
| 17 | 17 | ||
| 18 | class KAutoObjectWithListContainer { | 18 | class KAutoObjectWithListContainer { |
| 19 | public: | ||
| 19 | YUZU_NON_COPYABLE(KAutoObjectWithListContainer); | 20 | YUZU_NON_COPYABLE(KAutoObjectWithListContainer); |
| 20 | YUZU_NON_MOVEABLE(KAutoObjectWithListContainer); | 21 | YUZU_NON_MOVEABLE(KAutoObjectWithListContainer); |
| 21 | 22 | ||
| 22 | public: | ||
| 23 | using ListType = boost::intrusive::rbtree<KAutoObjectWithList>; | 23 | using ListType = boost::intrusive::rbtree<KAutoObjectWithList>; |
| 24 | 24 | ||
| 25 | public: | ||
| 26 | class ListAccessor : public KScopedLightLock { | 25 | class ListAccessor : public KScopedLightLock { |
| 27 | public: | 26 | public: |
| 28 | explicit ListAccessor(KAutoObjectWithListContainer* container) | 27 | explicit ListAccessor(KAutoObjectWithListContainer* container) |
| @@ -48,7 +47,6 @@ public: | |||
| 48 | 47 | ||
| 49 | friend class ListAccessor; | 48 | friend class ListAccessor; |
| 50 | 49 | ||
| 51 | public: | ||
| 52 | KAutoObjectWithListContainer(KernelCore& kernel) : m_lock(kernel), m_object_list() {} | 50 | KAutoObjectWithListContainer(KernelCore& kernel) : m_lock(kernel), m_object_list() {} |
| 53 | 51 | ||
| 54 | void Initialize() {} | 52 | void Initialize() {} |
diff --git a/src/core/hle/kernel/k_handle_table.h b/src/core/hle/kernel/k_handle_table.h index 4b114ec2f..87004a0f9 100644 --- a/src/core/hle/kernel/k_handle_table.h +++ b/src/core/hle/kernel/k_handle_table.h | |||
| @@ -22,13 +22,12 @@ namespace Kernel { | |||
| 22 | class KernelCore; | 22 | class KernelCore; |
| 23 | 23 | ||
| 24 | class KHandleTable { | 24 | class KHandleTable { |
| 25 | public: | ||
| 25 | YUZU_NON_COPYABLE(KHandleTable); | 26 | YUZU_NON_COPYABLE(KHandleTable); |
| 26 | YUZU_NON_MOVEABLE(KHandleTable); | 27 | YUZU_NON_MOVEABLE(KHandleTable); |
| 27 | 28 | ||
| 28 | public: | ||
| 29 | static constexpr size_t MaxTableSize = 1024; | 29 | static constexpr size_t MaxTableSize = 1024; |
| 30 | 30 | ||
| 31 | public: | ||
| 32 | explicit KHandleTable(KernelCore& kernel_); | 31 | explicit KHandleTable(KernelCore& kernel_); |
| 33 | ~KHandleTable(); | 32 | ~KHandleTable(); |
| 34 | 33 | ||
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h index 0979fc421..329f4ba86 100644 --- a/src/core/hle/service/vi/display/vi_display.h +++ b/src/core/hle/service/vi/display/vi_display.h | |||
| @@ -28,10 +28,10 @@ class Layer; | |||
| 28 | 28 | ||
| 29 | /// Represents a single display type | 29 | /// Represents a single display type |
| 30 | class Display { | 30 | class Display { |
| 31 | public: | ||
| 31 | YUZU_NON_COPYABLE(Display); | 32 | YUZU_NON_COPYABLE(Display); |
| 32 | YUZU_NON_MOVEABLE(Display); | 33 | YUZU_NON_MOVEABLE(Display); |
| 33 | 34 | ||
| 34 | public: | ||
| 35 | /// Constructs a display with a given unique ID and name. | 35 | /// Constructs a display with a given unique ID and name. |
| 36 | /// | 36 | /// |
| 37 | /// @param id The unique ID for this display. | 37 | /// @param id The unique ID for this display. |