[Kernel] Make XObject type() const.

This commit is contained in:
gibbed 2019-08-03 23:47:16 -05:00
parent b2f62b1982
commit 4970fc8673
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ Emulator* XObject::emulator() const { return kernel_state_->emulator_; }
KernelState* XObject::kernel_state() const { return kernel_state_; }
Memory* XObject::memory() const { return kernel_state_->memory(); }
XObject::Type XObject::type() { return type_; }
XObject::Type XObject::type() const { return type_; }
void XObject::RetainHandle() {
kernel_state_->object_table()->RetainHandle(handles_[0]);

View File

@ -134,7 +134,7 @@ class XObject {
KernelState* kernel_state() const;
Memory* memory() const;
Type type();
Type type() const;
// Returns the primary handle of this object.
X_HANDLE handle() const { return handles_[0]; }