Remove more |new|s, part 8
Change-Id: I0e3f4bd33e66fd48db8371a5cc2f8db964720d08
Reviewed-on: https://pdfium-review.googlesource.com/4731
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
diff --git a/fxbarcode/cbc_ean13.cpp b/fxbarcode/cbc_ean13.cpp
index 73638b9..1c57a87 100644
--- a/fxbarcode/cbc_ean13.cpp
+++ b/fxbarcode/cbc_ean13.cpp
@@ -24,8 +24,10 @@
#include <memory>
#include "fxbarcode/oned/BC_OnedEAN13Writer.h"
+#include "third_party/base/ptr_util.h"
-CBC_EAN13::CBC_EAN13() : CBC_OneCode(new CBC_OnedEAN13Writer) {}
+CBC_EAN13::CBC_EAN13()
+ : CBC_OneCode(pdfium::MakeUnique<CBC_OnedEAN13Writer>()) {}
CBC_EAN13::~CBC_EAN13() {}