diff options
Diffstat (limited to 'core/fxcrt/maybe_owned.h')
-rw-r--r-- | core/fxcrt/maybe_owned.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/maybe_owned.h b/core/fxcrt/maybe_owned.h index 511e63223b..26e9d6fe1c 100644 --- a/core/fxcrt/maybe_owned.h +++ b/core/fxcrt/maybe_owned.h @@ -21,7 +21,7 @@ namespace fxcrt { template <typename T, typename D = std::default_delete<T>> class MaybeOwned { public: - MaybeOwned() : m_pObj(nullptr) {} + MaybeOwned() = default; explicit MaybeOwned(T* ptr) : m_pObj(ptr) {} explicit MaybeOwned(const UnownedPtr<T>& ptr) : m_pObj(ptr.Get()) {} explicit MaybeOwned(std::unique_ptr<T, D> ptr) |