mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-14 00:31:47 +08:00
Merge pull request #1583 from stweil/warn
Fix compiler warnings caused by initialization order in constructor
This commit is contained in:
commit
1b8ab8e43b
@ -39,8 +39,8 @@ BLOCK::BLOCK(const char *name, //< filename
|
|||||||
int16_t xmin, //< bottom left
|
int16_t xmin, //< bottom left
|
||||||
int16_t ymin, int16_t xmax, //< top right
|
int16_t ymin, int16_t xmax, //< top right
|
||||||
int16_t ymax)
|
int16_t ymax)
|
||||||
: filename(name),
|
: pdblk(xmin, ymin, xmax, ymax),
|
||||||
pdblk(xmin, ymin, xmax, ymax),
|
filename(name),
|
||||||
re_rotation_(1.0f, 0.0f),
|
re_rotation_(1.0f, 0.0f),
|
||||||
classify_rotation_(1.0f, 0.0f),
|
classify_rotation_(1.0f, 0.0f),
|
||||||
skew_(1.0f, 0.0f) {
|
skew_(1.0f, 0.0f) {
|
||||||
|
@ -67,8 +67,8 @@ TabFind::TabFind(int gridsize, const ICOORD& bleft, const ICOORD& tright,
|
|||||||
int resolution)
|
int resolution)
|
||||||
: AlignedBlob(gridsize, bleft, tright),
|
: AlignedBlob(gridsize, bleft, tright),
|
||||||
resolution_(resolution),
|
resolution_(resolution),
|
||||||
v_it_(&vectors_),
|
image_origin_(0, tright.y() - 1),
|
||||||
image_origin_(0, tright.y() - 1) {
|
v_it_(&vectors_) {
|
||||||
width_cb_ = nullptr;
|
width_cb_ = nullptr;
|
||||||
v_it_.add_list_after(vlines);
|
v_it_.add_list_after(vlines);
|
||||||
SetVerticalSkewAndParellelize(vertical_x, vertical_y);
|
SetVerticalSkewAndParellelize(vertical_x, vertical_y);
|
||||||
|
Loading…
Reference in New Issue
Block a user