mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
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:
parent
5ef6df79ed
commit
5ed7cd6e32
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/DanShaders
Commit: 5ed7cd6e32
Pull-request: https://github.com/SerenityOS/serenity/pull/24014
175 changed files with 353 additions and 353 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue