X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Finet6.h;h=3b48a63fe089dc6733b722cd2c04f33f01adb325;hb=6625cf0e574406425c35d33110f8d99617e902df;hp=cc33e764936e4dbaaa4df8311774f6132407bbff;hpb=50e9f9ea7f7385a2c5931fca2b8fb1103078e67c;p=libs%2Fnet.git diff --git a/source/net/inet6.h b/source/net/inet6.h index cc33e76..3b48a63 100644 --- a/source/net/inet6.h +++ b/source/net/inet6.h @@ -9,20 +9,20 @@ namespace Net { class Inet6Addr: public SockAddr { private: - unsigned char addr[16]; - unsigned port; + unsigned char addr[16] = { }; + unsigned port = 0; public: - Inet6Addr(); + Inet6Addr() = default; Inet6Addr(const SysAddr &); - virtual Inet6Addr *copy() const { return new Inet6Addr(*this); } + Inet6Addr *copy() const override { return new Inet6Addr(*this); } - virtual SysAddr to_sys() const; + SysAddr to_sys() const override; - virtual Family get_family() const { return INET6; } + Family get_family() const override { return INET6; } unsigned get_port() const { return port; } - virtual std::string str() const; + std::string str() const override; }; } // namespace Net