From b3ed0fa44501b6dd51cb65691eb40d02d37aef42 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sun, 6 Dec 2015 15:25:11 -0600 Subject: [PATCH] NativeList default constructor --- src/xenia/kernel/util/native_list.cc | 2 ++ src/xenia/kernel/util/native_list.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/util/native_list.cc b/src/xenia/kernel/util/native_list.cc index 3e7668fe7..3c94f624b 100644 --- a/src/xenia/kernel/util/native_list.cc +++ b/src/xenia/kernel/util/native_list.cc @@ -13,6 +13,8 @@ namespace xe { namespace kernel { namespace util { +NativeList::NativeList() = default; + NativeList::NativeList(Memory* memory) : memory_(memory), head_(kInvalidPointer) {} diff --git a/src/xenia/kernel/util/native_list.h b/src/xenia/kernel/util/native_list.h index 34483fa36..446f0e5af 100644 --- a/src/xenia/kernel/util/native_list.h +++ b/src/xenia/kernel/util/native_list.h @@ -29,6 +29,7 @@ namespace util { class NativeList { public: + NativeList(); explicit NativeList(Memory* memory); void Insert(uint32_t list_entry_ptr); @@ -41,7 +42,7 @@ class NativeList { const uint32_t kInvalidPointer = 0xE0FE0FFF; private: - Memory* memory_; + Memory* memory_ = nullptr; uint32_t head_; };