From aca4fc767d663e43d323b96a75804a8f5cafd8d4 Mon Sep 17 00:00:00 2001 From: thestig Date: Wed, 28 Sep 2016 22:06:20 -0700 Subject: 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 --- core/fxcrt/fx_xml_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcrt') 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); + m_pMap = WrapUnique(new std::vector); for (CXML_AttrItem& item : *m_pMap) { if (item.Matches(space, name)) { -- cgit v1.2.3