Bläddra i källkod

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.
Lioncash 7 år sedan
förälder
incheckning
f5ce71793e
2 ändrade filer med 3 tillägg och 0 borttagningar
  1. 2 0
      src/core/hle/kernel/handle_table.cpp
  2. 1 0
      src/core/hle/kernel/handle_table.h

+ 2 - 0
src/core/hle/kernel/handle_table.cpp

@@ -18,6 +18,8 @@ HandleTable::HandleTable() {
     Clear();
     Clear();
 }
 }
 
 
+HandleTable::~HandleTable() = default;
+
 ResultVal<Handle> HandleTable::Create(SharedPtr<Object> obj) {
 ResultVal<Handle> HandleTable::Create(SharedPtr<Object> obj) {
     DEBUG_ASSERT(obj != nullptr);
     DEBUG_ASSERT(obj != nullptr);
 
 

+ 1 - 0
src/core/hle/kernel/handle_table.h

@@ -43,6 +43,7 @@ enum KernelHandle : Handle {
 class HandleTable final : NonCopyable {
 class HandleTable final : NonCopyable {
 public:
 public:
     HandleTable();
     HandleTable();
+    ~HandleTable();
 
 
     /**
     /**
      * Allocates a handle for the given object.
      * Allocates a handle for the given object.