]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/inet.cpp
Use the append function from string utilities
[libs/net.git] / source / net / inet.cpp
index 8e75cd89dfb1eb930b3e55a0217a93e42ab03e15..f44b1c0b08f0184ed3774e4da25018934b42bdea 100644 (file)
@@ -1,6 +1,6 @@
 #include "platform_api.h"
-#include <msp/strings/format.h>
 #include "inet.h"
+#include <msp/strings/format.h>
 #include "sockaddr_private.h"
 
 using namespace std;
@@ -8,12 +8,6 @@ using namespace std;
 namespace Msp {
 namespace Net {
 
-InetAddr::InetAddr():
-       port(0)
-{
-       fill(addr, addr+4, 0);
-}
-
 InetAddr::InetAddr(const SysAddr &sa)
 {
        const sockaddr_in &sai = reinterpret_cast<const sockaddr_in &>(sa.addr);