diff options
author | tsepez <tsepez@chromium.org> | 2016-11-16 14:45:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-16 14:45:42 -0800 |
commit | cc4d0a44f3025821f88f3ed1ee78dfdc416487c7 (patch) | |
tree | 505c6181f0dc078c351312f0e960cd37a89cf08b /core/fpdfapi/parser/cfdf_document.cpp | |
parent | 242b95e2a9df3b57dd9aa28adea58ad51f84a221 (diff) | |
download | pdfium-cc4d0a44f3025821f88f3ed1ee78dfdc416487c7.tar.xz |
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
Diffstat (limited to 'core/fpdfapi/parser/cfdf_document.cpp')
-rw-r--r-- | core/fpdfapi/parser/cfdf_document.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<CFX_ByteStringPool>()) {} + 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() { |