Skip to content

Commit 6436a69

Browse files
committed
BLOCK: Change order of initialization code
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]>
1 parent 45a6546 commit 6436a69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ccstruct/ocrblock.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ BLOCK::BLOCK(const char *name, //< filename
3939
int16_t xmin, //< bottom left
4040
int16_t ymin, int16_t xmax, //< top right
4141
int16_t ymax)
42-
: filename(name),
43-
pdblk(xmin, ymin, xmax, ymax),
42+
: pdblk(xmin, ymin, xmax, ymax),
43+
filename(name),
4444
re_rotation_(1.0f, 0.0f),
4545
classify_rotation_(1.0f, 0.0f),
4646
skew_(1.0f, 0.0f) {

0 commit comments

Comments
 (0)