kern: tweak KScopedAutoObject
This commit is contained in:
@@ -192,7 +192,7 @@ namespace ams::kern {
|
|||||||
}
|
}
|
||||||
public:
|
public:
|
||||||
constexpr ALWAYS_INLINE KScopedAutoObject() : obj(nullptr) { /* ... */ }
|
constexpr ALWAYS_INLINE KScopedAutoObject() : obj(nullptr) { /* ... */ }
|
||||||
constexpr KScopedAutoObject(T *o) : obj(o) {
|
constexpr ALWAYS_INLINE KScopedAutoObject(T *o) : obj(o) {
|
||||||
if (this->obj != nullptr) {
|
if (this->obj != nullptr) {
|
||||||
this->obj->Open();
|
this->obj->Open();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user