]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/socket.h
Add missing override specifiers
[libs/net.git] / source / net / socket.h
index d917bd8e37e9d1b9a7d81adbfbc98053d6738406..c55a5390a673d868b51d9e52a9675fee18f79b79 100644 (file)
@@ -30,8 +30,8 @@ protected:
 
        struct Private;
 
-       Private *priv;
-       SockAddr *local_addr;
+       Private *priv = nullptr;
+       SockAddr *local_addr = nullptr;
 
        Socket(const Private &);
        Socket(Family, int, int);
@@ -43,7 +43,7 @@ public:
 
        void set_block(bool) override;
        void set_inherit(bool) override;
-       const IO::Handle &get_handle(IO::Mode);
+       const IO::Handle &get_handle(IO::Mode) override;
        const IO::Handle &get_event_handle() override;
 
        /** Associates the socket with a local address.  There must be no existing