Skip to content

Commit

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

warning: ‘BLOCK::filename’ will be initialized after [-Wreorder]
warning:   ‘PDBLK BLOCK::pdblk’ [-Wreorder]

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed May 18, 2018
1 parent 45a6546 commit 6436a69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ccstruct/ocrblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6436a69

Please sign in to comment.