Index: xfa/fde/css/fde_cssstyleselector.cpp |
diff --git a/xfa/fde/css/fde_cssstyleselector.cpp b/xfa/fde/css/fde_cssstyleselector.cpp |
index 117afcc7ab480fa393b960d9287f023f11178145..72e5ffc12b26c802996bf71d836ca2228913f1bc 100644 |
--- a/xfa/fde/css/fde_cssstyleselector.cpp |
+++ b/xfa/fde/css/fde_cssstyleselector.cpp |
@@ -9,6 +9,7 @@ |
#include <algorithm> |
#include <memory> |
+#include "third_party/base/ptr_util.h" |
#include "third_party/base/stl_util.h" |
#include "xfa/fde/css/fde_csscache.h" |
#include "xfa/fde/css/fde_cssdeclaration.h" |
@@ -126,7 +127,7 @@ void CFDE_CSSStyleSelector::SetDefFontSize(FX_FLOAT fFontSize) { |
CFDE_CSSAccelerator* CFDE_CSSStyleSelector::InitAccelerator() { |
if (!m_pAccelerator) |
- m_pAccelerator.reset(new CFDE_CSSAccelerator); |
+ m_pAccelerator = pdfium::MakeUnique<CFDE_CSSAccelerator>(); |
m_pAccelerator->Clear(); |
return m_pAccelerator.get(); |
} |