]> git.tdb.fi Git - libs/net.git/blobdiff - source/http/server.h
Use default member initializers where possible
[libs/net.git] / source / http / server.h
index 4835de039c87b46781499a52e54cb901782b5188..d55b774d961392af735f2381444ba4193de57d05 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 = 0;
+               Response *response = 0;
+               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 = 0;
 
 public:
        Server();