Merge pull request #1583 from stweil/warn

Fix compiler warnings caused by initialization order in constructor
This commit is contained in:
zdenop 2018-05-18 22:13:49 +02:00 committed by GitHub
commit 1b8ab8e43b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ BLOCK::BLOCK(const char *name, //< filename
int16_t xmin, //< bottom left
int16_t ymin, int16_t xmax, //< top right
int16_t ymax)
: filename(name),
pdblk(xmin, ymin, xmax, ymax),
: pdblk(xmin, ymin, xmax, ymax),
filename(name),
re_rotation_(1.0f, 0.0f),
classify_rotation_(1.0f, 0.0f),
skew_(1.0f, 0.0f) {

View File

@ -67,8 +67,8 @@ TabFind::TabFind(int gridsize, const ICOORD& bleft, const ICOORD& tright,
int resolution)
: AlignedBlob(gridsize, bleft, tright),
resolution_(resolution),
v_it_(&vectors_),
image_origin_(0, tright.y() - 1) {
image_origin_(0, tright.y() - 1),
v_it_(&vectors_) {
width_cb_ = nullptr;
v_it_.add_list_after(vlines);
SetVerticalSkewAndParellelize(vertical_x, vertical_y);