From a62a48a7b5283c4fd156086ea31253c3ecd96d4d Mon Sep 17 00:00:00 2001 From: Johan Jansen Date: Thu, 31 Oct 2019 21:49:04 +0100 Subject: [PATCH] Modernize some additional code --- httplib.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/httplib.h b/httplib.h index 3d9f0d4..71bba16 100644 --- a/httplib.h +++ b/httplib.h @@ -473,11 +473,10 @@ private: class Server { public: - typedef std::function Handler; - typedef std::function - HandlerWithContentReader; - typedef std::function Logger; + using Handler = std::function; + using HandlerWithContentReader = std::function; + using Logger = std::function; Server(); @@ -576,7 +575,7 @@ private: class Client { public: - Client(const char *host, int port = 80, time_t timeout_sec = 300); + explicit Client(const char *host, int port = 80, time_t timeout_sec = 300); virtual ~Client();