summaryrefslogtreecommitdiff
path: root/fxbarcode/cbc_code39.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/cbc_code39.cpp')
-rw-r--r--fxbarcode/cbc_code39.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/fxbarcode/cbc_code39.cpp b/fxbarcode/cbc_code39.cpp
index 8b7e08b67e..97debaa88f 100644
--- a/fxbarcode/cbc_code39.cpp
+++ b/fxbarcode/cbc_code39.cpp
@@ -24,8 +24,10 @@
#include <memory>
#include "fxbarcode/oned/BC_OnedCode39Writer.h"
+#include "third_party/base/ptr_util.h"
-CBC_Code39::CBC_Code39() : CBC_OneCode(new CBC_OnedCode39Writer) {}
+CBC_Code39::CBC_Code39()
+ : CBC_OneCode(pdfium::MakeUnique<CBC_OnedCode39Writer>()) {}
CBC_Code39::~CBC_Code39() {}