summaryrefslogtreecommitdiff
path: root/fxbarcode/cbc_datamatrix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/cbc_datamatrix.cpp')
-rw-r--r--fxbarcode/cbc_datamatrix.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/fxbarcode/cbc_datamatrix.cpp b/fxbarcode/cbc_datamatrix.cpp
index 60b1f72d03..f1c98ced02 100644
--- a/fxbarcode/cbc_datamatrix.cpp
+++ b/fxbarcode/cbc_datamatrix.cpp
@@ -24,8 +24,10 @@
#include <memory>
#include "fxbarcode/datamatrix/BC_DataMatrixWriter.h"
+#include "third_party/base/ptr_util.h"
-CBC_DataMatrix::CBC_DataMatrix() : CBC_CodeBase(new CBC_DataMatrixWriter) {}
+CBC_DataMatrix::CBC_DataMatrix()
+ : CBC_CodeBase(pdfium::MakeUnique<CBC_DataMatrixWriter>()) {}
CBC_DataMatrix::~CBC_DataMatrix() {}