Reordered initialization of member variables within SyntacticLanguageModel.

Doing this gets rid of a gcc warning message.
This commit is contained in:
Lane Schwartz 2012-03-30 16:24:57 -04:00
parent afa2da4099
commit 6c356958b0

View File

@ -17,9 +17,9 @@ namespace Moses
size_t beamWidth)
// Initialize member variables
: m_NumScoreComponents(weights.size())
, m_beamWidth(beamWidth)
, m_files(new SyntacticLanguageModelFiles<YModel,XModel>(filePath))
, m_factorType(factorType)
, m_files(new SyntacticLanguageModelFiles<YModel,XModel>(filePath)) {
, m_beamWidth(beamWidth) {
// Inform Moses score manager of this feature and its weight(s)
const_cast<ScoreIndexManager&>(StaticData::Instance().GetScoreIndexManager()).AddScoreProducer(this);