kern: tweak KScopedAutoObject
This commit is contained in:
1 parent
53aae17b64
commit
d7429b74a4
1 file changed
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user