summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt')
-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)) {