diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-10 17:28:33 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-10 17:28:33 +0000 |
commit | 2c4c95d545c6e27b775a286e88130caadf8d5a7c (patch) | |
tree | b5aa06a161591f81279296c3ee0dd8ed6f8a9a6a /core/fxcrt/maybe_owned.h | |
parent | 7bf816420aa79b23c37ad433183f01dc5af653fa (diff) | |
download | pdfium-2c4c95d545c6e27b775a286e88130caadf8d5a7c.tar.xz |
Fix some random nits.
Change-Id: I735c057d4900bcd58c1041df16b885dc7c9ed27d
Reviewed-on: https://pdfium-review.googlesource.com/c/43793
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
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) |