mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-09 21:51:45 +00:00
kern: tweak KScopedAutoObject
This commit is contained in:
parent
53aae17b64
commit
d7429b74a4
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue