Index: xfa/fde/xml/cfx_saxreader.cpp |
diff --git a/xfa/fde/xml/cfx_saxreader.cpp b/xfa/fde/xml/cfx_saxreader.cpp |
index bd76e79442d3d13f48552bf85b02086248ca8d65..187d14e98bed4293f3c003a06f50ecf212ccc748 100644 |
--- a/xfa/fde/xml/cfx_saxreader.cpp |
+++ b/xfa/fde/xml/cfx_saxreader.cpp |
@@ -9,6 +9,7 @@ |
#include <algorithm> |
#include <utility> |
+#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<CFX_SAXItem> pNew(WrapUnique(new CFX_SAXItem(++m_dwItemID))); |
+ std::unique_ptr<CFX_SAXItem> pNew = |
+ pdfium::MakeUnique<CFX_SAXItem>(++m_dwItemID); |
if (!m_Stack.empty()) |
pNew->m_bSkip = m_Stack.top()->m_bSkip; |
m_Stack.push(std::move(pNew)); |