Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MasterTrainer {
- ....
- TrainingSampleSet samples_;
- ....
- FontInfoTable fontinfo_table_;
- ....
- };
- MasterTrainer::MasterTrainer(NormalizationMode norm_mode,
- bool shape_analysis,
- bool replicate_samples,
- int debug_level)
- : norm_mode_(norm_mode),
- samples_(fontinfo_table_),
- junk_samples_(fontinfo_table_),
- verify_samples_(fontinfo_table_),
- charsetsize_(0),
- enable_shape_anaylsis_(shape_analysis),
- enable_replication_(replicate_samples),
- fragments_(NULL), prev_unichar_id_(-1),
- debug_level_(debug_level) {
- }
- This suspicious code was found in tesseract-ocr project by PVS-Studio static code analyzer.
- Warning message is:
- V670 The uninitialized class member 'fontinfo_table_' is used to initialize the 'samples_' member. Remember that members are initialized in the order of their declarations inside a class. libtesseract303 mastertrainer.cpp 58
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement