Changed order of member initialization in constructor to avoid compiler warnings.

This commit is contained in:
Ulrich Germann 2013-05-21 19:09:49 +01:00
parent 7996378ffb
commit eaac9f5491

View File

@ -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