[Kernel] Make XObject type() const.
This commit is contained in:
parent
b2f62b1982
commit
4970fc8673
|
@ -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]);
|
||||
|
|
|
@ -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]; }
|
||||
|
|
Loading…
Reference in New Issue