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

Side by Side Diff: xfa/src/fxbarcode/oned/BC_OneDimReader.h

Issue 1773733002: Review and cleanup lint warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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_SRC_FXBARCODE_ONED_BC_ONEDIMREADER_H_ 7 #ifndef XFA_SRC_FXBARCODE_ONED_BC_ONEDIMREADER_H_
8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDIMREADER_H_ 8 #define XFA_SRC_FXBARCODE_ONED_BC_ONEDIMREADER_H_
9 9
10 #include "core/include/fxcrt/fx_basic.h" 10 #include "core/include/fxcrt/fx_basic.h"
11 #include "xfa/src/fxbarcode/oned/BC_OneDReader.h" 11 #include "xfa/src/fxbarcode/oned/BC_OneDReader.h"
12 12
13 class CBC_CommonBitArray; 13 class CBC_CommonBitArray;
14 14
15 class CBC_OneDimReader : public CBC_OneDReader { 15 class CBC_OneDimReader : public CBC_OneDReader {
16 private: 16 private:
17 const static int32_t MAX_AVG_VARIANCE; 17 static const int32_t MAX_AVG_VARIANCE;
Tom Sepez 2016/03/08 19:27:06 initializers here (since they are scalars) if poss
dsinclair 2016/03/08 21:08:02 Done.
18 const static int32_t MAX_INDIVIDUAL_VARIANCE; 18 static const int32_t MAX_INDIVIDUAL_VARIANCE;
19 19
20 FX_BOOL CheckStandardUPCEANChecksum(CFX_ByteString& s, int32_t& e); 20 FX_BOOL CheckStandardUPCEANChecksum(CFX_ByteString& s, int32_t& e);
21 21
22 public: 22 public:
23 const static int32_t START_END_PATTERN[3]; 23 static const int32_t START_END_PATTERN[3];
Tom Sepez 2016/03/08 19:27:06 no initializers here since they are arrays.
dsinclair 2016/03/08 21:08:02 Acknowledged.
24 const static int32_t MIDDLE_PATTERN[5]; 24 static const int32_t MIDDLE_PATTERN[5];
25 const static int32_t L_PATTERNS[10][4]; 25 static const int32_t L_PATTERNS[10][4];
26 const static int32_t L_AND_G_PATTERNS[20][4]; 26 static const int32_t L_AND_G_PATTERNS[20][4];
27 CBC_OneDimReader(); 27 CBC_OneDimReader();
28 virtual ~CBC_OneDimReader(); 28 virtual ~CBC_OneDimReader();
29 CFX_ByteString DecodeRow(int32_t rowNumber, 29 CFX_ByteString DecodeRow(int32_t rowNumber,
30 CBC_CommonBitArray* row, 30 CBC_CommonBitArray* row,
31 int32_t hints, 31 int32_t hints,
32 int32_t& e); 32 int32_t& e);
33 CFX_ByteString DecodeRow(int32_t rowNumber, 33 CFX_ByteString DecodeRow(int32_t rowNumber,
34 CBC_CommonBitArray* row, 34 CBC_CommonBitArray* row,
35 CFX_Int32Array* startGuardRange, 35 CFX_Int32Array* startGuardRange,
36 int32_t hints, 36 int32_t hints,
(...skipping 18 matching lines...) Expand all
55 CFX_ByteString& resultResult, 55 CFX_ByteString& resultResult,
56 int32_t& e) { 56 int32_t& e) {
57 return 0; 57 return 0;
58 } 58 }
59 virtual CFX_Int32Array* DecodeEnd(CBC_CommonBitArray* row, 59 virtual CFX_Int32Array* DecodeEnd(CBC_CommonBitArray* row,
60 int32_t endStart, 60 int32_t endStart,
61 int32_t& e); 61 int32_t& e);
62 }; 62 };
63 63
64 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDIMREADER_H_ 64 #endif // XFA_SRC_FXBARCODE_ONED_BC_ONEDIMREADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698