summaryrefslogtreecommitdiff
path: root/fxbarcode/cbc_upca.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/cbc_upca.cpp')
-rw-r--r--fxbarcode/cbc_upca.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/fxbarcode/cbc_upca.cpp b/fxbarcode/cbc_upca.cpp
index da22469c47..6c2e08a9fb 100644
--- a/fxbarcode/cbc_upca.cpp
+++ b/fxbarcode/cbc_upca.cpp
@@ -24,8 +24,9 @@
#include <memory>
#include "fxbarcode/oned/BC_OnedUPCAWriter.h"
+#include "third_party/base/ptr_util.h"
-CBC_UPCA::CBC_UPCA() : CBC_OneCode(new CBC_OnedUPCAWriter) {}
+CBC_UPCA::CBC_UPCA() : CBC_OneCode(pdfium::MakeUnique<CBC_OnedUPCAWriter>()) {}
CBC_UPCA::~CBC_UPCA() {}