Convert pdfium::MakeUnique<> to std::make_unique<> in fxbarcode
Use C++14 features.
-- ensure <memory> included in .cpp or corresponding .h file
-- remove ptr_util.h include unless WrapUnique() (1 case).
Change-Id: I8eb420fbab6c71fe0d153a9e1f9faa1c60fd43de
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/69990
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/fxbarcode/cbc_code39.cpp b/fxbarcode/cbc_code39.cpp
index f6600c4..4402cc4 100644
--- a/fxbarcode/cbc_code39.cpp
+++ b/fxbarcode/cbc_code39.cpp
@@ -25,10 +25,9 @@
#include "core/fxcrt/fx_memory_wrappers.h"
#include "fxbarcode/oned/BC_OnedCode39Writer.h"
-#include "third_party/base/ptr_util.h"
CBC_Code39::CBC_Code39()
- : CBC_OneCode(pdfium::MakeUnique<CBC_OnedCode39Writer>()) {}
+ : CBC_OneCode(std::make_unique<CBC_OnedCode39Writer>()) {}
CBC_Code39::~CBC_Code39() = default;