refactor(Core): apply clang-tidy modernize-use-nodiscard (#3835)

This commit is contained in:
Francesco Borzì
2020-12-06 19:39:48 +01:00
committed by GitHub
parent d4a58700d4
commit 161302252e
82 changed files with 1565 additions and 1569 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ struct CoordPair
y_coord = LIMIT - 1;
}
bool IsCoordValid() const
[[nodiscard]] bool IsCoordValid() const
{
return x_coord < LIMIT && y_coord < LIMIT;
}
@@ -133,7 +133,7 @@ struct CoordPair
return *this;
}
uint32 GetId() const
[[nodiscard]] uint32 GetId() const
{
return y_coord * LIMIT + x_coord;
}