From 45c1b044d3d76bd5a9ccbb38721df3a1692faa22 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 2 Dec 2020 04:08:06 -0800 Subject: [PATCH] kern: tweak KScopedAutoObject --- libmesosphere/include/mesosphere/kern_k_auto_object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmesosphere/include/mesosphere/kern_k_auto_object.hpp b/libmesosphere/include/mesosphere/kern_k_auto_object.hpp index 8f429bf5..38cf66e0 100644 --- a/libmesosphere/include/mesosphere/kern_k_auto_object.hpp +++ b/libmesosphere/include/mesosphere/kern_k_auto_object.hpp @@ -192,7 +192,7 @@ namespace ams::kern { } public: constexpr ALWAYS_INLINE KScopedAutoObject() : obj(nullptr) { /* ... */ } - constexpr KScopedAutoObject(T *o) : obj(o) { + constexpr ALWAYS_INLINE KScopedAutoObject(T *o) : obj(o) { if (this->obj != nullptr) { this->obj->Open(); }