X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Finet.h;h=517b111b42a71e386ca1c692293f1632733006f8;hb=6625cf0e574406425c35d33110f8d99617e902df;hp=639e64cbb1eca5ec8c9fc2e0d5247c91600adf38;hpb=debe1004676d5431e571d9c4361072661dcc88c4;p=libs%2Fnet.git diff --git a/source/net/inet.h b/source/net/inet.h index 639e64c..517b111 100644 --- a/source/net/inet.h +++ b/source/net/inet.h @@ -12,20 +12,20 @@ Address class for IPv4 sockets. class InetAddr: public SockAddr { private: - unsigned char addr[4]; - unsigned port; + unsigned char addr[4] = { }; + unsigned port = 0; public: - InetAddr(); + InetAddr() = default; InetAddr(const SysAddr &); - virtual InetAddr *copy() const { return new InetAddr(*this); } + InetAddr *copy() const override { return new InetAddr(*this); } - virtual SysAddr to_sys() const; + SysAddr to_sys() const override; - virtual Family get_family() const { return INET; } + Family get_family() const override { return INET; } unsigned get_port() const { return port; } - virtual std::string str() const; + std::string str() const override; }; } // namespace Net