summaryrefslogtreecommitdiff
path: root/fxbarcode/cbc_qrcode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/cbc_qrcode.cpp')
-rw-r--r--fxbarcode/cbc_qrcode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/fxbarcode/cbc_qrcode.cpp b/fxbarcode/cbc_qrcode.cpp
index 5bdc9768f0..6565623db2 100644
--- a/fxbarcode/cbc_qrcode.cpp
+++ b/fxbarcode/cbc_qrcode.cpp
@@ -24,8 +24,10 @@
#include <memory>
#include "fxbarcode/qrcode/BC_QRCodeWriter.h"
+#include "third_party/base/ptr_util.h"
-CBC_QRCode::CBC_QRCode() : CBC_CodeBase(new CBC_QRCodeWriter) {}
+CBC_QRCode::CBC_QRCode()
+ : CBC_CodeBase(pdfium::MakeUnique<CBC_QRCodeWriter>()) {}
CBC_QRCode::~CBC_QRCode() {}