summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_xml_parser.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-09-28 22:06:20 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-28 22:06:20 -0700
commitaca4fc767d663e43d323b96a75804a8f5cafd8d4 (patch)
tree3e4e5c168af167ba6044c83431511b9a978773ed /core/fxcrt/fx_xml_parser.cpp
parent3873f302948e37aad7066c8231575f486015cc34 (diff)
downloadpdfium-aca4fc767d663e43d323b96a75804a8f5cafd8d4.tar.xz
Replace a few more std::unique_ptr.reset() with WrapUnique assignments.
And fix a typo. TBR=tsepez@chromium.org Review-Url: https://codereview.chromium.org/2382443004
Diffstat (limited to 'core/fxcrt/fx_xml_parser.cpp')
-rw-r--r--core/fxcrt/fx_xml_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/fx_xml_parser.cpp b/core/fxcrt/fx_xml_parser.cpp
index 9412cdde04..926196786a 100644
--- a/core/fxcrt/fx_xml_parser.cpp
+++ b/core/fxcrt/fx_xml_parser.cpp
@@ -894,7 +894,7 @@ void CXML_AttrMap::SetAt(const CFX_ByteString& space,
const CFX_ByteString& name,
const CFX_WideString& value) {
if (!m_pMap)
- m_pMap.reset(new std::vector<CXML_AttrItem>);
+ m_pMap = WrapUnique(new std::vector<CXML_AttrItem>);
for (CXML_AttrItem& item : *m_pMap) {
if (item.Matches(space, name)) {