From e801d4e064690fbe1815d25d220cfbca79976a4f Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 29 Apr 2016 13:45:14 -0700 Subject: Replace CFX_PtrArray with typesafe CFX_ArrayTemplate, part 9 Converted one place to unique_ptr to avoid redundant cleanup. Review-Url: https://codereview.chromium.org/1937593002 --- xfa/fxbarcode/datamatrix/BC_DataMatrixDetector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xfa/fxbarcode/datamatrix/BC_DataMatrixDetector.cpp') diff --git a/xfa/fxbarcode/datamatrix/BC_DataMatrixDetector.cpp b/xfa/fxbarcode/datamatrix/BC_DataMatrixDetector.cpp index 9fd1bbc4a0..a4ca4e228c 100644 --- a/xfa/fxbarcode/datamatrix/BC_DataMatrixDetector.cpp +++ b/xfa/fxbarcode/datamatrix/BC_DataMatrixDetector.cpp @@ -195,7 +195,8 @@ CBC_QRDetectorResult* CBC_DataMatrixDetector::Detect(int32_t& e) { dimensionCorrected, e)); BC_EXCEPTION_CHECK_ReturnValue(e, nullptr); } - CFX_PtrArray* result = new CFX_PtrArray; + CFX_ArrayTemplate* result = + new CFX_ArrayTemplate(); result->SetSize(4); result->Add(topLeft); result->Add(bottomLeft); -- cgit v1.2.3