diff options
author | tsepez <tsepez@chromium.org> | 2016-09-20 12:02:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-20 12:02:32 -0700 |
commit | 5b7c9bbf6c26ca272706814ad3598894ce5e4e3b (patch) | |
tree | c70a3495741e94684e45c10d6d0fbe06306fda06 /core/fpdfapi/fpdf_parser/include/cpdf_object.h | |
parent | a6df44456956914e86b9d9af722b30628c45f208 (diff) | |
download | pdfium-5b7c9bbf6c26ca272706814ad3598894ce5e4e3b.tar.xz |
Re-land "Make CPDF_IndirectObjectHolder use unique_ptr to objects""
This reverts commit 81e1e3fd2d33478733e47bd007b76fac1a663e74.
Review-Url: https://codereview.chromium.org/2353013003
Diffstat (limited to 'core/fpdfapi/fpdf_parser/include/cpdf_object.h')
-rw-r--r-- | core/fpdfapi/fpdf_parser/include/cpdf_object.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fpdfapi/fpdf_parser/include/cpdf_object.h b/core/fpdfapi/fpdf_parser/include/cpdf_object.h index 115ce02200..de14503bbb 100644 --- a/core/fpdfapi/fpdf_parser/include/cpdf_object.h +++ b/core/fpdfapi/fpdf_parser/include/cpdf_object.h @@ -7,6 +7,7 @@ #ifndef CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_OBJECT_H_ +#include <memory> #include <set> #include "core/fxcrt/include/fx_string.h" @@ -92,6 +93,7 @@ class CPDF_Object { friend class CPDF_Parser; friend class CPDF_Reference; friend class CPDF_Stream; + friend struct std::default_delete<CPDF_Object>; CPDF_Object() : m_ObjNum(0), m_GenNum(0) {} virtual ~CPDF_Object(); |