diff options
| author | 2018-11-21 18:22:24 -0500 | |
|---|---|---|
| committer | 2018-11-21 18:23:09 -0500 | |
| commit | f5ce71793e1d60fdecd641484038a1436c161905 (patch) | |
| tree | f2429310a7f1a3c5fae3632adda89411083868b9 /src/core | |
| parent | Merge pull request #1751 from bunnei/color-mask-fix (diff) | |
| download | yuzu-f5ce71793e1d60fdecd641484038a1436c161905.tar.gz yuzu-f5ce71793e1d60fdecd641484038a1436c161905.tar.xz yuzu-f5ce71793e1d60fdecd641484038a1436c161905.zip | |
kernel/handle_table: Default destructor in the cpp file
We don't need to potentially inline the teardown logic of all of the
handle instances.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/kernel/handle_table.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/kernel/handle_table.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp index 5ee5c05e3..9f2b996c4 100644 --- a/src/core/hle/kernel/handle_table.cpp +++ b/src/core/hle/kernel/handle_table.cpp | |||
| @@ -18,6 +18,8 @@ HandleTable::HandleTable() { | |||
| 18 | Clear(); | 18 | Clear(); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | HandleTable::~HandleTable() = default; | ||
| 22 | |||
| 21 | ResultVal<Handle> HandleTable::Create(SharedPtr<Object> obj) { | 23 | ResultVal<Handle> HandleTable::Create(SharedPtr<Object> obj) { |
| 22 | DEBUG_ASSERT(obj != nullptr); | 24 | DEBUG_ASSERT(obj != nullptr); |
| 23 | 25 | ||
diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h index 9e2f33e8a..b5e5f6545 100644 --- a/src/core/hle/kernel/handle_table.h +++ b/src/core/hle/kernel/handle_table.h | |||
| @@ -43,6 +43,7 @@ enum KernelHandle : Handle { | |||
| 43 | class HandleTable final : NonCopyable { | 43 | class HandleTable final : NonCopyable { |
| 44 | public: | 44 | public: |
| 45 | HandleTable(); | 45 | HandleTable(); |
| 46 | ~HandleTable(); | ||
| 46 | 47 | ||
| 47 | /** | 48 | /** |
| 48 | * Allocates a handle for the given object. | 49 | * Allocates a handle for the given object. |