From 732f53d798c86558e1e625c22e957243bb2d6467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Fri, 18 Nov 2016 20:54:41 +0100 Subject: Clean a few more things --- louloulibs/network/dns_handler.cpp | 1 - louloulibs/network/dns_handler.hpp | 3 ++- louloulibs/network/tcp_socket_handler.hpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'louloulibs/network') diff --git a/louloulibs/network/dns_handler.cpp b/louloulibs/network/dns_handler.cpp index fef0cfc..b1807b5 100644 --- a/louloulibs/network/dns_handler.cpp +++ b/louloulibs/network/dns_handler.cpp @@ -8,7 +8,6 @@ #include #include -#include DNSHandler DNSHandler::instance; diff --git a/louloulibs/network/dns_handler.hpp b/louloulibs/network/dns_handler.hpp index fd1729d..53a7799 100644 --- a/louloulibs/network/dns_handler.hpp +++ b/louloulibs/network/dns_handler.hpp @@ -20,8 +20,9 @@ class DNSSocketHandler; class DNSHandler { -public: +private: DNSHandler(); +public: ~DNSHandler() = default; DNSHandler(const DNSHandler&) = delete; DNSHandler(DNSHandler&&) = delete; diff --git a/louloulibs/network/tcp_socket_handler.hpp b/louloulibs/network/tcp_socket_handler.hpp index c33c8f2..5863d4a 100644 --- a/louloulibs/network/tcp_socket_handler.hpp +++ b/louloulibs/network/tcp_socket_handler.hpp @@ -204,8 +204,8 @@ protected: /** * Called when we detect a disconnection from the remote host. */ - virtual void on_connection_close(const std::string& error) = 0; - virtual void on_connection_failed(const std::string& error) = 0; + virtual void on_connection_close(const std::string&) {} + virtual void on_connection_failed(const std::string&) {} private: #ifdef BOTAN_FOUND -- cgit v1.2.3