From cc4d0a44f3025821f88f3ed1ee78dfdc416487c7 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 16 Nov 2016 14:45:42 -0800 Subject: Move ByteStringPool from document to indirect object holder. Since the indirect object holder is now in the object creation business, this will allow it to intern strings in a subsequent CL. Review-Url: https://codereview.chromium.org/2509773003 --- core/fpdfapi/parser/cfdf_document.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/fpdfapi/parser/cfdf_document.cpp') diff --git a/core/fpdfapi/parser/cfdf_document.cpp b/core/fpdfapi/parser/cfdf_document.cpp index d76ae1e642..96ed4ae6eb 100644 --- a/core/fpdfapi/parser/cfdf_document.cpp +++ b/core/fpdfapi/parser/cfdf_document.cpp @@ -15,13 +15,11 @@ CFDF_Document::CFDF_Document() : CPDF_IndirectObjectHolder(), m_pRootDict(nullptr), m_pFile(nullptr), - m_bOwnFile(false), - m_pByteStringPool(pdfium::MakeUnique()) {} + m_bOwnFile(false) {} CFDF_Document::~CFDF_Document() { if (m_bOwnFile && m_pFile) m_pFile->Release(); - m_pByteStringPool.DeleteObject(); // Make weak. } CFDF_Document* CFDF_Document::CreateNewDoc() { -- cgit v1.2.3