From 36eb4bdcae719cf33c536ff72ac000482aed8382 Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 3 Oct 2016 15:24:27 -0700 Subject: Add ptr_util.h from base until std::make_unique<> available Review-Url: https://codereview.chromium.org/2386273004 --- xfa/fde/xml/cfx_saxreader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xfa/fde/xml') diff --git a/xfa/fde/xml/cfx_saxreader.cpp b/xfa/fde/xml/cfx_saxreader.cpp index bd76e79442..187d14e98b 100644 --- a/xfa/fde/xml/cfx_saxreader.cpp +++ b/xfa/fde/xml/cfx_saxreader.cpp @@ -9,6 +9,7 @@ #include #include +#include "third_party/base/ptr_util.h" #include "xfa/fxfa/xfa_checksum.h" enum class CFX_SaxMode { @@ -159,7 +160,8 @@ void CFX_SAXReader::Reset() { } void CFX_SAXReader::Push() { - std::unique_ptr pNew(WrapUnique(new CFX_SAXItem(++m_dwItemID))); + std::unique_ptr pNew = + pdfium::MakeUnique(++m_dwItemID); if (!m_Stack.empty()) pNew->m_bSkip = m_Stack.top()->m_bSkip; m_Stack.push(std::move(pNew)); -- cgit v1.2.3