From eaac9f54913a00221b1690fbfb78333a8c735d40 Mon Sep 17 00:00:00 2001 From: Ulrich Germann Date: Tue, 21 May 2013 19:09:49 +0100 Subject: [PATCH] Changed order of member initialization in constructor to avoid compiler warnings. --- moses/Hypothesis.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/moses/Hypothesis.cpp b/moses/Hypothesis.cpp index 63de4ce1f..bf871cc66 100644 --- a/moses/Hypothesis.cpp +++ b/moses/Hypothesis.cpp @@ -54,17 +54,19 @@ Hypothesis::Hypothesis(Manager& manager, InputType const& source, const TargetPh , m_sourceCompleted(source.GetSize(), manager.m_source.m_sourceCompleted) , m_sourceInput(source) , m_currSourceWordsRange( - m_sourceCompleted.GetFirstGapPos()>0 ? 0 : NOT_FOUND, - m_sourceCompleted.GetFirstGapPos()>0 ? m_sourceCompleted.GetFirstGapPos()-1 : NOT_FOUND) + m_sourceCompleted.GetFirstGapPos() > 0 + ? 0 : NOT_FOUND, + m_sourceCompleted.GetFirstGapPos() > 0 + ? m_sourceCompleted.GetFirstGapPos()-1 + : NOT_FOUND) , m_currTargetWordsRange(0, emptyTarget.GetSize()-1) , m_wordDeleted(false) + , m_totalScore(0.0f) + , m_futureScore(0.0f) , m_ffStates(StatefulFeatureFunction::GetStatefulFeatureFunctions().size()) , m_arcList(NULL) , m_transOpt(NULL) - , m_manager(manager) -, m_totalScore(0.0f) -, m_futureScore(0.0f) - + , m_manager(manager) , m_id(m_manager.GetNextHypoId()) { // used for initial seeding of trans process