hle: kernel: Migrate KProcess to KAutoObject.

This commit is contained in:
bunnei 2021-04-03 22:22:36 -07:00
parent 8b224f05c9
commit 7a6bfbde24
14 changed files with 80 additions and 58 deletions

View file

@ -98,7 +98,7 @@ public:
* Looks up a handle.
* @return Pointer to the looked-up object, or `nullptr` if the handle is not valid.
*/
std::shared_ptr<Object> GetGeneric(Handle handle) const;
Object* GetGeneric(Handle handle) const;
/**
* Looks up a handle while verifying its type.
@ -106,7 +106,7 @@ public:
* type differs from the requested one.
*/
template <class T>
std::shared_ptr<T> Get(Handle handle) const {
T* Get(Handle handle) const {
return DynamicObjectCast<T>(GetGeneric(handle));
}