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

Side by Side 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, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_ 7 #ifndef XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_
8 #define XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_ 8 #define XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_
9 9
10 #include "core/fxcrt/include/fx_basic.h" 10 #include "core/fxcrt/include/fx_basic.h"
11 #include "xfa/fxbarcode/BC_ResultPoint.h"
11 12
12 class CBC_CommonBitMatrix; 13 class CBC_CommonBitMatrix;
13 14
14 class CBC_PDF417DetectorResult { 15 class CBC_PDF417DetectorResult final {
15 public: 16 public:
16 CBC_PDF417DetectorResult(CBC_CommonBitMatrix* bits, CFX_PtrArray* points); 17 // Takes ownership of |points|.
17 virtual ~CBC_PDF417DetectorResult(); 18 CBC_PDF417DetectorResult(CBC_CommonBitMatrix* bits,
18 CBC_CommonBitMatrix* getBits(); 19 CBC_ResultPointArrayArray* points);
19 CFX_PtrArray* getPoints(); 20 ~CBC_PDF417DetectorResult();
21
22 CBC_CommonBitMatrix* getBits() const;
23 CBC_ResultPointArrayArray* getPoints() const;
20 24
21 private: 25 private:
22 CBC_CommonBitMatrix* m_bits; 26 CBC_CommonBitMatrix* m_bits;
23 CFX_PtrArray* m_points; 27 std::unique_ptr<CBC_ResultPointArrayArray> m_points;
24 }; 28 };
25 29
26 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_ 30 #endif // XFA_FXBARCODE_PDF417_BC_PDF417DETECTORRESULT_H_
OLDNEW
« 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