summaryrefslogtreecommitdiff
path: root/core/fpdfdoc
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-02-27 14:45:56 -0800
committerChromium commit bot <commit-bot@chromium.org>2017-02-28 00:35:05 +0000
commita99de0ec3cda8ff5b0d6383a059dd39c8626e504 (patch)
treefea2f04aca7aca32fc85c952040cf8593f40a64e /core/fpdfdoc
parentce32acfa15071e6cd5bcce73280857014e396dd2 (diff)
downloadpdfium-a99de0ec3cda8ff5b0d6383a059dd39c8626e504.tar.xz
Clean up CXML_Element.chromium/3026
- Set more members in the ctor - Remove dead code - Use more unique_ptrs Change-Id: Idfe85d07c784a57862f9314bc85f407f817b8f2f Reviewed-on: https://pdfium-review.googlesource.com/2844 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc')
-rw-r--r--core/fpdfdoc/cpdf_metadata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_metadata.cpp b/core/fpdfdoc/cpdf_metadata.cpp
index bdb70c0166..5e3acbe3a2 100644
--- a/core/fpdfdoc/cpdf_metadata.cpp
+++ b/core/fpdfdoc/cpdf_metadata.cpp
@@ -22,7 +22,7 @@ CPDF_Metadata::CPDF_Metadata(CPDF_Document* pDoc) {
CPDF_StreamAcc acc;
acc.LoadAllData(pStream, false);
- m_pXmlElement.reset(CXML_Element::Parse(acc.GetData(), acc.GetSize()));
+ m_pXmlElement = CXML_Element::Parse(acc.GetData(), acc.GetSize());
}
CPDF_Metadata::~CPDF_Metadata() {}