1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:57:35 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -34,7 +34,7 @@ ErrorOr<void> ConnectionBase::post_message(MessageBuffer buffer)
// Prepend the message size.
uint32_t message_size = buffer.data.size();
TRY(buffer.data.try_prepend(reinterpret_cast<const u8*>(&message_size), sizeof(message_size)));
TRY(buffer.data.try_prepend(reinterpret_cast<u8 const*>(&message_size), sizeof(message_size)));
#ifdef __serenity__
for (auto& fd : buffer.fds) {

View file

@ -46,7 +46,7 @@ public:
this->shutdown();
}
void did_misbehave(const char* message)
void did_misbehave(char const* message)
{
dbgln("{} (id={}) misbehaved ({}), disconnecting.", *this, m_client_id, message);
this->shutdown();

View file

@ -16,7 +16,7 @@ class Dictionary {
public:
Dictionary() = default;
Dictionary(const HashMap<String, String>& initial_entries)
Dictionary(HashMap<String, String> const& initial_entries)
: m_entries(initial_entries)
{
}
@ -37,7 +37,7 @@ public:
}
}
const HashMap<String, String>& entries() const { return m_entries; }
HashMap<String, String> const& entries() const { return m_entries; }
private:
HashMap<String, String> m_entries;

View file

@ -52,7 +52,7 @@ public:
virtual u32 endpoint_magic() const = 0;
virtual int message_id() const = 0;
virtual const char* message_name() const = 0;
virtual char const* message_name() const = 0;
virtual bool valid() const = 0;
virtual MessageBuffer encode() const = 0;

View file

@ -25,7 +25,7 @@ public:
virtual u32 magic() const = 0;
virtual String name() const = 0;
virtual OwnPtr<MessageBuffer> handle(const Message&) = 0;
virtual OwnPtr<MessageBuffer> handle(Message const&) = 0;
protected:
Stub() = default;