diff options
author | Lioncash <mathew1800@gmail.com> | 2018-11-21 18:22:24 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-11-21 18:23:09 -0500 |
commit | f5ce71793e1d60fdecd641484038a1436c161905 (patch) | |
tree | f2429310a7f1a3c5fae3632adda89411083868b9 /src | |
parent | 5af4160bf2a7d59c7c407131473feeb669ab37c5 (diff) |
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')
-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() { Clear(); } +HandleTable::~HandleTable() = default; + ResultVal<Handle> HandleTable::Create(SharedPtr<Object> obj) { DEBUG_ASSERT(obj != nullptr); 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 { class HandleTable final : NonCopyable { public: HandleTable(); + ~HandleTable(); /** * Allocates a handle for the given object. |