diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-09-18 09:49:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-25 21:18:17 +0200 |
commit | ede5dbd7b3ec1c7240d6ca2693a5ada307338b4c (patch) | |
tree | ee3a79ccadd3eaacfe7da533c71cb401d8146695 /Libraries/LibCore | |
parent | 64cc3f51d0a1d4ddc68fe9e3b5da2834eac48dae (diff) | |
download | serenity-ede5dbd7b3ec1c7240d6ca2693a5ada307338b4c.zip |
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.
Diffstat (limited to 'Libraries/LibCore')
-rw-r--r-- | Libraries/LibCore/ArgsParser.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibCore/ElapsedTimer.h | 2 | ||||
-rw-r--r-- | Libraries/LibCore/MimeData.h | 4 | ||||
-rw-r--r-- | Libraries/LibCore/UDPServer.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/Libraries/LibCore/ArgsParser.cpp b/Libraries/LibCore/ArgsParser.cpp index 8ddbfdd883..1e168b4d16 100644 --- a/Libraries/LibCore/ArgsParser.cpp +++ b/Libraries/LibCore/ArgsParser.cpp @@ -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) { diff --git a/Libraries/LibCore/ElapsedTimer.h b/Libraries/LibCore/ElapsedTimer.h index 7db9ff0bb7..9f74285216 100644 --- a/Libraries/LibCore/ElapsedTimer.h +++ b/Libraries/LibCore/ElapsedTimer.h @@ -32,7 +32,7 @@ namespace Core { class ElapsedTimer { public: - ElapsedTimer() {} + ElapsedTimer() { } bool is_valid() const { return m_valid; } void start(); diff --git a/Libraries/LibCore/MimeData.h b/Libraries/LibCore/MimeData.h index 70f226e45a..0d541fcf57 100644 --- a/Libraries/LibCore/MimeData.h +++ b/Libraries/LibCore/MimeData.h @@ -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; }; diff --git a/Libraries/LibCore/UDPServer.cpp b/Libraries/LibCore/UDPServer.cpp index 6f8e23258c..f122db2a51 100644 --- a/Libraries/LibCore/UDPServer.cpp +++ b/Libraries/LibCore/UDPServer.cpp @@ -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) |