mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:17:45 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue