diff options
author | Lane Schwartz <dowobeha@gmail.com> | 2012-03-31 00:24:57 +0400 |
---|---|---|
committer | Lane Schwartz <dowobeha@gmail.com> | 2012-03-31 00:24:57 +0400 |
commit | 152a5968037c27c3927480be1e8c0b0a08a3c98f (patch) | |
tree | 311abfb9f29d2b86f3eeb897e62643602ec18350 /moses | |
parent | 8c949576f6f6810ec700bba61230e41b65b1ca14 (diff) |
Reordered initialization of member variables within SyntacticLanguageModel.
Doing this gets rid of a gcc warning message.
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/SyntacticLanguageModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/src/SyntacticLanguageModel.cpp b/moses/src/SyntacticLanguageModel.cpp index c9b3f1e22..80802a568 100644 --- a/moses/src/SyntacticLanguageModel.cpp +++ b/moses/src/SyntacticLanguageModel.cpp @@ -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); |