diff options
Diffstat (limited to 'core/fxcrt/retain_ptr.h')
-rw-r--r-- | core/fxcrt/retain_ptr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/retain_ptr.h b/core/fxcrt/retain_ptr.h index 481bfbba56..e14b1ef5dc 100644 --- a/core/fxcrt/retain_ptr.h +++ b/core/fxcrt/retain_ptr.h @@ -28,7 +28,7 @@ class RetainPtr { m_pObj->Retain(); } - RetainPtr() {} + RetainPtr() = default; RetainPtr(const RetainPtr& that) : RetainPtr(that.Get()) {} RetainPtr(RetainPtr&& that) noexcept { Swap(that); } @@ -89,7 +89,7 @@ class Retainable { bool HasOneRef() const { return m_nRefCount == 1; } protected: - virtual ~Retainable() {} + virtual ~Retainable() = default; private: template <typename U> |