From 83f6e9ea725be6d1bed821c4797f8e464ff9c32a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 Nov 2018 18:22:24 -0500 Subject: [PATCH] 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. --- src/core/hle/kernel/handle_table.cpp | 2 ++ src/core/hle/kernel/handle_table.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/core/hle/kernel/handle_table.cpp b/src/core/hle/kernel/handle_table.cpp index 15dcc45834..7be2dcb126 100644 --- a/src/core/hle/kernel/handle_table.cpp +++ b/src/core/hle/kernel/handle_table.cpp @@ -17,6 +17,8 @@ HandleTable::HandleTable(KernelSystem& kernel) : kernel(kernel) { Clear(); } +HandleTable::~HandleTable() = default; + ResultVal HandleTable::Create(SharedPtr obj) { DEBUG_ASSERT(obj != nullptr); diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h index 00cb47a33c..7f76f53d6b 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: explicit HandleTable(KernelSystem& kernel); + ~HandleTable(); /** * Allocates a handle for the given object.