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