NativeList default constructor

This commit is contained in:
Dr. Chat 2015-12-06 15:25:11 -06:00 committed by Ben Vanik
parent 23b6a1f943
commit b3ed0fa445
2 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,8 @@ namespace xe {
namespace kernel {
namespace util {
NativeList::NativeList() = default;
NativeList::NativeList(Memory* memory)
: memory_(memory), head_(kInvalidPointer) {}

View File

@ -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_;
};