Index: core/fpdfapi/fpdf_parser/include/cpdf_object.h |
diff --git a/core/fpdfapi/fpdf_parser/include/cpdf_object.h b/core/fpdfapi/fpdf_parser/include/cpdf_object.h |
index 115ce022003b749e0607f2d7fd4c93585b1e71cf..de14503bbbeed7b561cc3c074d171d2f27f02e18 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>; |
Tom Sepez
2016/09/19 20:08:02
Note: we have this in several places in chromium/s
dsinclair
2016/09/19 20:13:47
That's cool, never seen that before.
|
CPDF_Object() : m_ObjNum(0), m_GenNum(0) {} |
virtual ~CPDF_Object(); |