mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
Meta+LibC through LibHTTP: Make clang-format-10 clean
Why break at LibHTTP? Because "Meta+Libraries" would be insanely large, and breaking between LibHTTP and LibJS makes the commits roughly evenly large.
This commit is contained in:
parent
64cc3f51d0
commit
ede5dbd7b3
58 changed files with 87 additions and 89 deletions
|
@ -334,7 +334,7 @@ void ArgsParser::add_positional_argument(double& value, const char* help_string,
|
|||
required == Required::Yes ? 1 : 0,
|
||||
1,
|
||||
[&value](const char* s) {
|
||||
char *p;
|
||||
char* p;
|
||||
double v = strtod(s, &p);
|
||||
bool valid_value = !isnan(v) && p != s;
|
||||
if (valid_value) {
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace Core {
|
|||
|
||||
class ElapsedTimer {
|
||||
public:
|
||||
ElapsedTimer() {}
|
||||
ElapsedTimer() { }
|
||||
|
||||
bool is_valid() const { return m_valid; }
|
||||
void start();
|
||||
|
|
|
@ -37,7 +37,7 @@ class MimeData : public Object {
|
|||
C_OBJECT(MimeData);
|
||||
|
||||
public:
|
||||
virtual ~MimeData() {}
|
||||
virtual ~MimeData() { }
|
||||
|
||||
ByteBuffer data(const String& mime_type) const { return m_data.get(mime_type).value_or({}); }
|
||||
void set_data(const String& mime_type, const ByteBuffer& data) { m_data.set(mime_type, data); }
|
||||
|
@ -56,7 +56,7 @@ public:
|
|||
void set_urls(const Vector<URL>&);
|
||||
|
||||
private:
|
||||
MimeData() {}
|
||||
MimeData() { }
|
||||
|
||||
HashMap<String, ByteBuffer> m_data;
|
||||
};
|
||||
|
|
|
@ -69,7 +69,7 @@ bool UDPServer::bind(const IPv4Address& address, u16 port)
|
|||
rc = ::bind(m_fd, (const sockaddr*)&in, sizeof(in));
|
||||
ASSERT(rc == 0);
|
||||
m_bound = true;
|
||||
|
||||
|
||||
m_notifier = Notifier::construct(m_fd, Notifier::Event::Read, this);
|
||||
m_notifier->on_ready_to_read = [this] {
|
||||
if (on_ready_to_receive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue