Index: xfa/fde/fde_render.cpp |
diff --git a/xfa/fde/fde_render.cpp b/xfa/fde/fde_render.cpp |
index e1d46f55f9845c9f754e1d73dcb71c3e2e2afd4a..9528219b45faa728cf64cee4c3e589d08b52bb27 100644 |
--- a/xfa/fde/fde_render.cpp |
+++ b/xfa/fde/fde_render.cpp |
@@ -6,6 +6,7 @@ |
#include "xfa/fde/fde_render.h" |
+#include "third_party/base/ptr_util.h" |
#include "xfa/fde/fde_gedevice.h" |
#include "xfa/fde/fde_object.h" |
#include "xfa/fgas/crt/fgas_memory.h" |
@@ -38,7 +39,7 @@ bool CFDE_RenderContext::StartRender(CFDE_RenderDevice* pRenderDevice, |
m_pRenderDevice = pRenderDevice; |
m_Transform = tmDoc2Device; |
if (!m_pIterator) |
- m_pIterator.reset(new CFDE_VisualSetIterator); |
+ m_pIterator = pdfium::MakeUnique<CFDE_VisualSetIterator>(); |
return m_pIterator->AttachCanvas(pCanvasSet) && m_pIterator->FilterObjects(); |
} |
@@ -116,7 +117,7 @@ void CFDE_RenderContext::RenderText(IFDE_TextSet* pTextSet, |
return; |
if (!m_pBrush) |
- m_pBrush.reset(new CFDE_Brush); |
+ m_pBrush = pdfium::MakeUnique<CFDE_Brush>(); |
if (m_CharPos.size() < static_cast<size_t>(iCount)) |
m_CharPos.resize(iCount, FXTEXT_CHARPOS()); |