diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-05-05 20:04:41 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-05-05 20:04:41 +0400 |
commit | 3f2cbcc84629c5f53a39e9bb7fc14860e218208f (patch) | |
tree | 140ec1f6788b2d0f41969657d4e5d1418752a39b /moses | |
parent | f8d88920a1e0b2487429624f4a2c07ea717ee2aa (diff) |
Fix a warning of -Woverloaded-virtfual.
A function declaration hided virtual functions from a base class.
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/HypothesisStack.h | 2 | ||||
-rw-r--r-- | moses/src/HypothesisStackNormal.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/moses/src/HypothesisStack.h b/moses/src/HypothesisStack.h index 784cd7a39..045773725 100644 --- a/moses/src/HypothesisStack.h +++ b/moses/src/HypothesisStack.h @@ -39,7 +39,7 @@ public: virtual float GetWorstScoreForBitmap( WordsBitmapID ) { return -std::numeric_limits<float>::infinity(); }; - virtual float GetWorstScoreForBitmap( WordsBitmap ) { + virtual float GetWorstScoreForBitmap( const WordsBitmap& ) { return -std::numeric_limits<float>::infinity(); }; diff --git a/moses/src/HypothesisStackNormal.h b/moses/src/HypothesisStackNormal.h index 6996f4003..d991ec373 100644 --- a/moses/src/HypothesisStackNormal.h +++ b/moses/src/HypothesisStackNormal.h @@ -66,7 +66,7 @@ public: return -std::numeric_limits<float>::infinity(); return m_diversityWorstScore[ id ]; } - float GetWorstScoreForBitmap( const WordsBitmap &coverage ) { + virtual float GetWorstScoreForBitmap( const WordsBitmap &coverage ) { return GetWorstScoreForBitmap( coverage.GetID() ); } |