diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibChess/UCICommand.h | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibChess/UCICommand.h')
-rw-r--r-- | Userland/Libraries/LibChess/UCICommand.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibChess/UCICommand.h b/Userland/Libraries/LibChess/UCICommand.h index 33415ae8c5..0b5ae607cb 100644 --- a/Userland/Libraries/LibChess/UCICommand.h +++ b/Userland/Libraries/LibChess/UCICommand.h @@ -109,8 +109,8 @@ public: virtual String to_string() const override; - const String& name() const { return m_name; } - const Optional<String>& value() const { return m_value; } + String const& name() const { return m_name; } + Optional<String> const& value() const { return m_value; } private: String m_name; @@ -119,7 +119,7 @@ private: class PositionCommand : public Command { public: - explicit PositionCommand(const Optional<String>& fen, const Vector<Chess::Move>& moves) + explicit PositionCommand(Optional<String> const& fen, Vector<Chess::Move> const& moves) : Command(Command::Type::Position) , m_fen(fen) , m_moves(moves) @@ -130,8 +130,8 @@ public: virtual String to_string() const override; - const Optional<String>& fen() const { return m_fen; } - const Vector<Chess::Move>& moves() const { return m_moves; } + Optional<String> const& fen() const { return m_fen; } + Vector<Chess::Move> const& moves() const { return m_moves; } private: Optional<String> m_fen; @@ -194,7 +194,7 @@ public: virtual String to_string() const override; Type field_type() const { return m_field_type; } - const String& value() const { return m_value; } + String const& value() const { return m_value; } private: Type m_field_type; @@ -227,7 +227,7 @@ public: class BestMoveCommand : public Command { public: - explicit BestMoveCommand(const Chess::Move& move) + explicit BestMoveCommand(Chess::Move const& move) : Command(Command::Type::BestMove) , m_move(move) { |