From a0a69233cafa0ec22fd6c776851e3ee069ca66bf Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 1 May 2017 11:39:33 -0700 Subject: Remove more |new|s, part 5 Many of these are already unique_ptrs. Change-Id: I3695d4ff5a8f7483ad994ac7657897fd55069cd5 Reviewed-on: https://pdfium-review.googlesource.com/4690 Commit-Queue: dsinclair Reviewed-by: dsinclair --- core/fxcrt/xml/cfx_saxreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcrt') diff --git a/core/fxcrt/xml/cfx_saxreader.cpp b/core/fxcrt/xml/cfx_saxreader.cpp index 13efdccdda..c345c0c038 100644 --- a/core/fxcrt/xml/cfx_saxreader.cpp +++ b/core/fxcrt/xml/cfx_saxreader.cpp @@ -199,7 +199,7 @@ int32_t CFX_SAXReader::StartParse( m_bCharData = false; m_dwDataOffset = 0; m_dwParseMode = dwParseMode; - m_Stack.emplace(new CFX_SAXItem(++m_dwItemID)); + m_Stack.push(pdfium::MakeUnique(++m_dwItemID)); return 0; } -- cgit v1.2.3