]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/inet6.h
Use the override specifier when overriding
[libs/net.git] / source / net / inet6.h
index cc33e764936e4dbaaa4df8311774f6132407bbff..fb07eec52e2d2ff14dcaa551fff7eef38468a840 100644 (file)
@@ -16,13 +16,13 @@ public:
        Inet6Addr();
        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