mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 22:14:57 +03:00
Fix a warning of -Woverloaded-virtfual.
A function declaration hided virtual functions from a base class.
This commit is contained in:
parent
f8d88920a1
commit
3f2cbcc846
@ -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();
|
||||
};
|
||||
|
||||
|
@ -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() );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user