summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h')
-rw-r--r--xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h b/xfa/fxbarcode/pdf417/BC_PDF417DetectorResult.h
index 558111a28a..afb200a4ea 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_