diff options
author | tsepez <tsepez@chromium.org> | 2016-10-03 13:54:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-03 13:54:27 -0700 |
commit | abab61a1fcd776964a15c528dd2dd034fb31edf0 (patch) | |
tree | 72b991193f09b7e60218b91e44cf676807f4e76d /core/fpdfapi/fpdf_parser | |
parent | bcf46238b4533a9da91f4fa5d7248bbc85511dbd (diff) | |
download | pdfium-abab61a1fcd776964a15c528dd2dd034fb31edf0.tar.xz |
Rename CFX_WeakPtr::Clear() to DestroyObject()
|Clear| is too easily mistaken for "clear this pointer only."
Review-Url: https://codereview.chromium.org/2385303002
Diffstat (limited to 'core/fpdfapi/fpdf_parser')
-rw-r--r-- | core/fpdfapi/fpdf_parser/cfdf_document.cpp | 2 | ||||
-rw-r--r-- | core/fpdfapi/fpdf_parser/cpdf_document.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/fpdf_parser/cfdf_document.cpp b/core/fpdfapi/fpdf_parser/cfdf_document.cpp index 860912ab3e..3721bf885b 100644 --- a/core/fpdfapi/fpdf_parser/cfdf_document.cpp +++ b/core/fpdfapi/fpdf_parser/cfdf_document.cpp @@ -20,7 +20,7 @@ CFDF_Document::CFDF_Document() CFDF_Document::~CFDF_Document() { if (m_bOwnFile && m_pFile) m_pFile->Release(); - m_pByteStringPool.Clear(); // Make weak. + m_pByteStringPool.DeleteObject(); // Make weak. } CFDF_Document* CFDF_Document::CreateNewDoc() { diff --git a/core/fpdfapi/fpdf_parser/cpdf_document.cpp b/core/fpdfapi/fpdf_parser/cpdf_document.cpp index f90fa3dc78..f8b4f9b87b 100644 --- a/core/fpdfapi/fpdf_parser/cpdf_document.cpp +++ b/core/fpdfapi/fpdf_parser/cpdf_document.cpp @@ -423,7 +423,7 @@ CPDF_Document::CPDF_Document(std::unique_ptr<CPDF_Parser> pParser) CPDF_Document::~CPDF_Document() { delete m_pDocPage; CPDF_ModuleMgr::Get()->GetPageModule()->ClearStockFont(this); - m_pByteStringPool.Clear(); // Make weak. + m_pByteStringPool.DeleteObject(); // Make weak. } CPDF_Object* CPDF_Document::ParseIndirectObject(uint32_t objnum) { |