Mes recomanacions de cppcheck

This commit is contained in:
2024-10-13 19:26:27 +02:00
parent 46540ad7c3
commit babf02226c
22 changed files with 291 additions and 369 deletions
+1 -1
View File
@@ -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);