mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -53,8 +53,8 @@ struct EventLoopTimer {
|
|||
TimerShouldFireWhenNotVisible fire_when_not_visible { TimerShouldFireWhenNotVisible::No };
|
||||
WeakPtr<Object> owner;
|
||||
|
||||
void reload(const Time& now);
|
||||
bool has_expired(const Time& now) const;
|
||||
void reload(Time const& now);
|
||||
bool has_expired(Time const& now) const;
|
||||
};
|
||||
|
||||
struct EventLoop::Private {
|
||||
|
@ -208,16 +208,16 @@ private:
|
|||
}
|
||||
|
||||
public:
|
||||
void send_response(const JsonObject& response)
|
||||
void send_response(JsonObject const& response)
|
||||
{
|
||||
auto serialized = response.to_string();
|
||||
u32 length = serialized.length();
|
||||
// FIXME: Propagate errors
|
||||
MUST(m_socket->write({ (const u8*)&length, sizeof(length) }));
|
||||
MUST(m_socket->write({ (u8 const*)&length, sizeof(length) }));
|
||||
MUST(m_socket->write(serialized.bytes()));
|
||||
}
|
||||
|
||||
void handle_request(const JsonObject& request)
|
||||
void handle_request(JsonObject const& request)
|
||||
{
|
||||
auto type = request.get("type").as_string_or({});
|
||||
|
||||
|
@ -792,12 +792,12 @@ try_select_again:
|
|||
}
|
||||
}
|
||||
|
||||
bool EventLoopTimer::has_expired(const Time& now) const
|
||||
bool EventLoopTimer::has_expired(Time const& now) const
|
||||
{
|
||||
return now > fire_time;
|
||||
}
|
||||
|
||||
void EventLoopTimer::reload(const Time& now)
|
||||
void EventLoopTimer::reload(Time const& now)
|
||||
{
|
||||
fire_time = now + interval;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue