Can't call constructors from other constructors

This commit is contained in:
Dr. Chat 2015-12-06 16:47:19 -06:00 committed by Ben Vanik
parent ce2d6da2a1
commit 89c408965e
1 changed files with 2 additions and 1 deletions

View File

@ -34,10 +34,11 @@ XObject::XObject(Type type)
XObject::XObject(KernelState* kernel_state, Type type)
: kernel_state_(kernel_state),
type_(type),
pointer_ref_count_(1),
guest_object_ptr_(0),
allocated_guest_object_(false) {
XObject::XObject(type);
handles_.reserve(10);
// TODO: Assert kernel_state != nullptr in this constructor.
if (kernel_state) {