Moved m_ttask and m_ttash_flag in initialization orderto avoid compiler warnings.

This commit is contained in:
Ulrich Germann 2015-07-13 17:50:14 +01:00
parent cc5f128944
commit 0abef8c581

View File

@ -42,13 +42,13 @@ namespace Moses
{
TargetPhrase::TargetPhrase( std::string out_string, const PhraseDictionary *pt)
:Phrase(0)
, m_ttask_flag(false)
, m_fullScore(0.0)
, m_futureScore(0.0)
, m_alignTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
, m_lhsTarget(NULL)
, m_ruleSource(NULL)
, m_ttask_flag(false)
, m_container(pt)
{
//ACAT
@ -61,14 +61,14 @@ TargetPhrase::TargetPhrase( std::string out_string, const PhraseDictionary *pt)
TargetPhrase::TargetPhrase(ttasksptr& ttask, std::string out_string, const PhraseDictionary *pt)
:Phrase(0)
, m_ttask(ttask)
, m_ttask_flag(true)
, m_fullScore(0.0)
, m_futureScore(0.0)
, m_alignTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
, m_alignNonTerm(&AlignmentInfoCollection::Instance().GetEmptyAlignmentInfo())
, m_lhsTarget(NULL)
, m_ruleSource(NULL)
, m_ttask(ttask)
, m_ttask_flag(true)
, m_container(pt)
{