mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:27:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -39,7 +39,7 @@ Client::Client(int id, NonnullOwnPtr<Core::Stream::TCPSocket> socket, int ptm_fd
|
|||
}
|
||||
};
|
||||
|
||||
m_parser.on_command = [this](const Command& command) {
|
||||
m_parser.on_command = [this](Command const& command) {
|
||||
auto result = handle_command(command);
|
||||
if (result.is_error()) {
|
||||
dbgln("Failed to handle the command: {}", result.error());
|
||||
|
@ -110,7 +110,7 @@ void Client::handle_data(StringView data)
|
|||
write(m_ptm_fd, data.characters_without_null_termination(), data.length());
|
||||
}
|
||||
|
||||
ErrorOr<void> Client::handle_command(const Command& command)
|
||||
ErrorOr<void> Client::handle_command(Command const& command)
|
||||
{
|
||||
switch (command.command) {
|
||||
case CMD_DO:
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
class Parser {
|
||||
public:
|
||||
Function<void(const Command&)> on_command;
|
||||
Function<void(Command const&)> on_command;
|
||||
Function<void(StringView)> on_data;
|
||||
Function<void()> on_error;
|
||||
|
||||
|
@ -31,7 +31,7 @@ protected:
|
|||
Error,
|
||||
};
|
||||
|
||||
void write(const String& str);
|
||||
void write(String const& str);
|
||||
|
||||
private:
|
||||
State m_state { State::Free };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue