]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Optimize: inline several Ip::Address methods
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 May 2011 13:52:35 +0000 (07:52 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 May 2011 13:52:35 +0000 (07:52 -0600)
src/SquidConfig.cc
src/ip/Address.cc
src/ip/Address.h

index 970e3b483051a43a35b2df9da1535bfef4ea3861..0dc94e2e11c8107699cbd7f03f73bdc67e5836cb 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 #include "config.h"
+#include "ip/Address.h"
 // just for the global definition of Config and Config2
 #include "structs.h"
 
index 597ae6586f39e2c9540e48d92bd43270ad6e3138..420b9689287c9973109ce8f28b3c118032885c20 100644 (file)
                } printf("\n"); assert(b); \
        }
 
-Ip::Address::Address()
-{
-    SetEmpty();
-}
-
-Ip::Address::~Address()
-{
-    memset(this,0,sizeof(Ip::Address));
-}
-
 int
 Ip::Address::GetCIDR() const
 {
index 3665de500807f769492f65adb8c1f4e0cc3e84eb..216385f059785f03d62d65e16a7b2e57f6522cd7 100644 (file)
@@ -75,7 +75,7 @@ class Address
 public:
     /** @name Constructors and Destructor */
     /*@{*/
-    Address();
+    Address() { SetEmpty(); }
     Address(const Address &);
 
     /**
@@ -94,8 +94,7 @@ public:
     Address(const struct hostent &);
     Address(const struct addrinfo &);
     Address(const char*);
-    /// Default destructor.
-    ~Address();
+    ~Address() {}
     /*@}*/
 
     /** @name Assignment Operators */