Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Unified Diff: xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h

Issue 1936733002: Replace CFX_PtrArray with typesafe CFX_ArrayTemplate, part 10 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fxbarcode/pdf417/BC_PDF417Detector.cpp ('k') | xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h
diff --git a/xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h b/xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h
index 558111a28a946393900069e233e519f5e235fe0b..afb200a4eac6053fed308044d1411c6ea77561bb 100644
--- a/xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h
+++ b/xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h
@@ -8,19 +8,23 @@
#define XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_
#include "core/fxcrt/include/fx_basic.h"
+#include "xfa/fxbarcode/BC_ResultPoint.h"
class CBC_CommonBitMatrix;
-class CBC_PDF417DetectorResult {
+class CBC_PDF417DetectorResult final {
public:
- CBC_PDF417DetectorResult(CBC_CommonBitMatrix* bits, CFX_PtrArray* points);
- virtual ~CBC_PDF417DetectorResult();
- CBC_CommonBitMatrix* getBits();
- CFX_PtrArray* getPoints();
+ // Takes ownership of |points|.
+ CBC_PDF417DetectorResult(CBC_CommonBitMatrix* bits,
+ CBC_ResultPointArrayArray* points);
+ ~CBC_PDF417DetectorResult();
+
+ CBC_CommonBitMatrix* getBits() const;
+ CBC_ResultPointArrayArray* getPoints() const;
private:
CBC_CommonBitMatrix* m_bits;
- CFX_PtrArray* m_points;
+ std::unique_ptr<CBC_ResultPointArrayArray> m_points;
};
#endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_
« no previous file with comments | « xfa/fxbarcode/pdf417/BC_PDF417Detector.cpp ('k') | xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698