Skip to content

Commit

Permalink
TabFind: Change order of initialization code
Browse files Browse the repository at this point in the history
This fixes a compiler warning:

warning: ‘tesseract::TabFind::v_it_’ will be initialized after [-Wreorder]
warning:   ‘ICOORD tesseract::TabFind::image_origin_’ [-Wreorder]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 18, 2018
1 parent 6436a69 commit c8f8f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textord/tabfind.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit c8f8f63

Please sign in to comment.