diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-30 11:42:35 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-30 11:43:09 +0100 |
commit | 5cbc9d57246ce23083101c44ee8d0d427356e00e (patch) | |
tree | d58cce090031e9de266b6290352d3e463f46b010 /Userland/Services/LookupServer/LookupServer.h | |
parent | 553361d83f7bc6499dc4821eff9b23a6549bd99c (diff) | |
download | serenity-5cbc9d57246ce23083101c44ee8d0d427356e00e.zip |
LookupServer: Don't create Core::Object on the stack
Diffstat (limited to 'Userland/Services/LookupServer/LookupServer.h')
-rw-r--r-- | Userland/Services/LookupServer/LookupServer.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Services/LookupServer/LookupServer.h b/Userland/Services/LookupServer/LookupServer.h index 7b5a08140a..aba488457b 100644 --- a/Userland/Services/LookupServer/LookupServer.h +++ b/Userland/Services/LookupServer/LookupServer.h @@ -28,18 +28,17 @@ #include "DNSRequest.h" #include "DNSResponse.h" -#include <AK/HashMap.h> #include <LibCore/Object.h> class DNSAnswer; class LookupServer final : public Core::Object { - C_OBJECT(LookupServer) + C_OBJECT(LookupServer); public: +private: LookupServer(); -private: void load_etc_hosts(); void service_client(RefPtr<Core::LocalSocket>); Vector<String> lookup(const String& hostname, const String& nameserver, bool& did_get_response, unsigned short record_type, ShouldRandomizeCase = ShouldRandomizeCase::Yes); |