1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-09-19 13:33:24 +01:00

kern: tweak KScopedAutoObject

This commit is contained in:
Michael Scire 2020-12-02 04:08:06 -08:00
parent 53aae17b64
commit d7429b74a4

View file

@ -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();
}