Index: xfa/fxbarcode/BC_TwoDimWriter.cpp |
diff --git a/xfa/fxbarcode/BC_TwoDimWriter.cpp b/xfa/fxbarcode/BC_TwoDimWriter.cpp |
index ec6c3626b2a574a84fc3f8323692937e21e8b31f..84678a81daff2aff64aa1ae597d8b802d52d4c9b 100644 |
--- a/xfa/fxbarcode/BC_TwoDimWriter.cpp |
+++ b/xfa/fxbarcode/BC_TwoDimWriter.cpp |
@@ -10,6 +10,7 @@ |
#include "core/fxge/cfx_pathdata.h" |
#include "core/fxge/cfx_renderdevice.h" |
#include "third_party/base/numerics/safe_math.h" |
+#include "third_party/base/ptr_util.h" |
#include "xfa/fxbarcode/BC_TwoDimWriter.h" |
#include "xfa/fxbarcode/BC_Writer.h" |
#include "xfa/fxbarcode/common/BC_CommonBitMatrix.h" |
@@ -134,7 +135,7 @@ void CBC_TwoDimWriter::RenderResult(uint8_t* code, |
if (topPadding < 0) { |
topPadding = 0; |
} |
- m_output.reset(new CBC_CommonBitMatrix); |
+ m_output = pdfium::MakeUnique<CBC_CommonBitMatrix>(); |
m_output->Init(outputWidth, outputHeight); |
for (int32_t inputY = 0, outputY = topPadding; |
(inputY < inputHeight) && (outputY < outputHeight - multiY); |