summaryrefslogtreecommitdiff
path: root/core/fxcodec
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-04-26 15:14:35 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-27 19:53:13 +0000
commit6e72b2ecdb95f000dede3c80e0c32496c0b27a18 (patch)
tree36350bea8b8ee81449693f8667c62fff1cedbcea /core/fxcodec
parent827db14d7f3d0085253b686587717361ffbcad1b (diff)
downloadpdfium-6e72b2ecdb95f000dede3c80e0c32496c0b27a18.tar.xz
Remove more |new|s, part 2
Change-Id: I13b43ceafc6a35bcc1e366546a4a408ea01fe4ab Reviewed-on: https://pdfium-review.googlesource.com/4534 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec')
-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() {}