Fix a warning of -Woverloaded-virtfual.

A function declaration hided virtual functions from a base class.
This commit is contained in:
Tetsuo Kiso 2012-05-06 01:04:41 +09:00
parent f8d88920a1
commit 3f2cbcc846
2 changed files with 2 additions and 2 deletions

View File

@ -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();
};

View File

@ -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() );
}