Mes recomanacions de cppcheck
This commit is contained in:
@@ -50,7 +50,7 @@ void ManageHiScoreTable::sort()
|
||||
{
|
||||
struct
|
||||
{
|
||||
bool operator()(HiScoreEntry &a, HiScoreEntry &b) const { return a.score > b.score; }
|
||||
bool operator()(const HiScoreEntry &a, const HiScoreEntry &b) const { return a.score > b.score; }
|
||||
} custom_less;
|
||||
|
||||
std::sort(table_->begin(), table_->end(), custom_less);
|
||||
|
||||
Reference in New Issue
Block a user