]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/server.h
Use nullptr instead of 0 for pointers
[libs/net.git] / source / http / server.h
index 4835de039c87b46781499a52e54cb901782b5188..e6de22781d17077a8e26a66925231780de4c518d 100644 (file)
@@ -22,11 +22,11 @@ private:
        {
                RefPtr<Net::StreamSocket> sock;
                std::string in_buf;
-               Request *request;
-               Response *response;
-               bool keepalive;
-               bool async;
-               bool stale;
+               Request *request = nullptr;
+               Response *response = nullptr;
+               bool keepalive = false;
+               bool async = false;
+               bool stale = false;
 
                Client(RefPtr<Net::StreamSocket>);
                ~Client();
@@ -35,7 +35,7 @@ private:
        Net::StreamServerSocket sock;
        std::list<Client> clients;
        std::map<Response *, Client *> responses;
-       IO::EventDispatcher *event_disp;
+       IO::EventDispatcher *event_disp = nullptr;
 
 public:
        Server();