Index: xfa/fde/tto/fde_textout.cpp |
diff --git a/xfa/fde/tto/fde_textout.cpp b/xfa/fde/tto/fde_textout.cpp |
index 68a68565d17c8bb942f786c1a182a214a897f6c7..d7155b7107a2491803008d9f466c96638afc3f9d 100644 |
--- a/xfa/fde/tto/fde_textout.cpp |
+++ b/xfa/fde/tto/fde_textout.cpp |
@@ -10,6 +10,7 @@ |
#include "core/fxcrt/fx_coordinates.h" |
#include "core/fxcrt/fx_system.h" |
+#include "third_party/base/ptr_util.h" |
#include "xfa/fde/cfde_path.h" |
#include "xfa/fde/fde_gedevice.h" |
#include "xfa/fde/fde_object.h" |
@@ -132,12 +133,12 @@ void CFDE_TextOut::SetDIBitmap(CFX_DIBitmap* pDIB) { |
m_pRenderDevice.reset(); |
CFX_FxgeDevice* device = new CFX_FxgeDevice; |
device->Attach(pDIB, false, nullptr, false); |
- m_pRenderDevice.reset(new CFDE_RenderDevice(device, false)); |
+ m_pRenderDevice = pdfium::MakeUnique<CFDE_RenderDevice>(device, false); |
} |
void CFDE_TextOut::SetRenderDevice(CFX_RenderDevice* pDevice) { |
ASSERT(pDevice); |
- m_pRenderDevice.reset(new CFDE_RenderDevice(pDevice, false)); |
+ m_pRenderDevice = pdfium::MakeUnique<CFDE_RenderDevice>(pDevice, false); |
} |
void CFDE_TextOut::SetClipRect(const CFX_Rect& rtClip) { |