mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
Reordered initialization of member variables within SyntacticLanguageModel.
Doing this gets rid of a gcc warning message.
This commit is contained in:
parent
afa2da4099
commit
6c356958b0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user