summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec/fx_codec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcodec/codec/fx_codec.cpp')
-rw-r--r--core/fxcodec/codec/fx_codec.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/core/fxcodec/codec/fx_codec.cpp b/core/fxcodec/codec/fx_codec.cpp
index c47231c9af..38f5a7608d 100644
--- a/core/fxcodec/codec/fx_codec.cpp
+++ b/core/fxcodec/codec/fx_codec.cpp
@@ -18,14 +18,13 @@
#include "third_party/base/ptr_util.h"
CCodec_ModuleMgr::CCodec_ModuleMgr()
- : m_pBasicModule(new CCodec_BasicModule),
- m_pFaxModule(new CCodec_FaxModule),
- m_pJpegModule(new CCodec_JpegModule),
- m_pJpxModule(new CCodec_JpxModule),
- m_pJbig2Module(new CCodec_Jbig2Module),
- m_pIccModule(new CCodec_IccModule),
- m_pFlateModule(new CCodec_FlateModule) {
-}
+ : m_pBasicModule(pdfium::MakeUnique<CCodec_BasicModule>()),
+ m_pFaxModule(pdfium::MakeUnique<CCodec_FaxModule>()),
+ m_pJpegModule(pdfium::MakeUnique<CCodec_JpegModule>()),
+ m_pJpxModule(pdfium::MakeUnique<CCodec_JpxModule>()),
+ m_pJbig2Module(pdfium::MakeUnique<CCodec_Jbig2Module>()),
+ m_pIccModule(pdfium::MakeUnique<CCodec_IccModule>()),
+ m_pFlateModule(pdfium::MakeUnique<CCodec_FlateModule>()) {}
CCodec_ModuleMgr::~CCodec_ModuleMgr() {}