diff options
Diffstat (limited to 'core/fpdfapi/parser/cpdf_boolean.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_boolean.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_boolean.cpp b/core/fpdfapi/parser/cpdf_boolean.cpp index 416b6ff4bc..0204fd9eb0 100644 --- a/core/fpdfapi/parser/cpdf_boolean.cpp +++ b/core/fpdfapi/parser/cpdf_boolean.cpp @@ -5,6 +5,7 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "core/fpdfapi/parser/cpdf_boolean.h" +#include "third_party/base/ptr_util.h" CPDF_Boolean::CPDF_Boolean() : m_bValue(false) {} @@ -16,8 +17,8 @@ CPDF_Object::Type CPDF_Boolean::GetType() const { return BOOLEAN; } -CPDF_Object* CPDF_Boolean::Clone() const { - return new CPDF_Boolean(m_bValue); +std::unique_ptr<CPDF_Object> CPDF_Boolean::Clone() const { + return pdfium::MakeUnique<CPDF_Boolean>(m_bValue); } CFX_ByteString CPDF_Boolean::GetString() const { |