Everywhere: Use east const in more places

These changes are compatible with clang-format 16 and will be mandatory
when we eventually bump clang-format version. So, since there are no
real downsides, let's commit them now.
This commit is contained in:
Dan Klishch 2024-04-18 15:32:56 -04:00 committed by Tim Flynn
commit 5ed7cd6e32
Notes: sideshowbarker 2024-07-16 23:38:54 +09:00
175 changed files with 353 additions and 353 deletions

View file

@ -116,7 +116,7 @@ ErrorOr<String> Move::to_long_algebraic() const
return builder.to_string();
}
Move Move::from_algebraic(StringView algebraic, const Color turn, Board const& board)
Move Move::from_algebraic(StringView algebraic, Color const turn, Board const& board)
{
auto move_string = algebraic;
Move move({ 50, 50 }, { 50, 50 });
@ -294,7 +294,7 @@ ErrorOr<String> Board::to_fen() const
int empty = 0;
for (int rank = 0; rank < 8; rank++) {
for (int file = 0; file < 8; file++) {
const Piece p(get_piece({ 7 - rank, file }));
Piece const p(get_piece({ 7 - rank, file }));
if (p.type == Type::None) {
empty++;
continue;