From 4970fc8673048af8df42663d68a1e24cb9c2b171 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 3 Aug 2019 23:47:16 -0500 Subject: [PATCH] [Kernel] Make XObject type() const. --- src/xenia/kernel/xobject.cc | 2 +- src/xenia/kernel/xobject.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/kernel/xobject.cc b/src/xenia/kernel/xobject.cc index 546d7a3a9..30a6436fa 100644 --- a/src/xenia/kernel/xobject.cc +++ b/src/xenia/kernel/xobject.cc @@ -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]); diff --git a/src/xenia/kernel/xobject.h b/src/xenia/kernel/xobject.h index 280250ca5..23ab38d6e 100644 --- a/src/xenia/kernel/xobject.h +++ b/src/xenia/kernel/xobject.h @@ -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]; }