From 6436a69677afddcc50b96827eff26351e680dda9 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 18 May 2018 11:57:31 +0200 Subject: [PATCH] BLOCK: Change order of initialization code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a compiler warning: warning: ‘BLOCK::filename’ will be initialized after [-Wreorder] warning: ‘PDBLK BLOCK::pdblk’ [-Wreorder] Signed-off-by: Stefan Weil --- src/ccstruct/ocrblock.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ccstruct/ocrblock.cpp b/src/ccstruct/ocrblock.cpp index 72cb5cd4f8..868aac8ff6 100644 --- a/src/ccstruct/ocrblock.cpp +++ b/src/ccstruct/ocrblock.cpp @@ -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) {