From c8f8f6365cd8ecf594d78e5e4f987db9e0d2ec74 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 18 May 2018 12:02:23 +0200 Subject: [PATCH] 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 1442591990..18e36d4eb4 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);