mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-01 02:37:27 +01:00
kern: tweak KScopedAutoObject
This commit is contained in:
parent
57f935391d
commit
972283032a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user