From 6436a69677afddcc50b96827eff26351e680dda9 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 18 May 2018 11:57:31 +0200 Subject: [PATCH 1/2] 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 72cb5cd4..868aac8f 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) { From c8f8f6365cd8ecf594d78e5e4f987db9e0d2ec74 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 18 May 2018 12:02:23 +0200 Subject: [PATCH 2/2] TabFind: 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: ‘tesseract::TabFind::v_it_’ will be initialized after [-Wreorder] warning: ‘ICOORD tesseract::TabFind::image_origin_’ [-Wreorder] Signed-off-by: Stefan Weil --- src/textord/tabfind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textord/tabfind.cpp b/src/textord/tabfind.cpp index 14425919..18e36d4e 100644 --- a/src/textord/tabfind.cpp +++ b/src/textord/tabfind.cpp @@ -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);