GH #127: Eliminate -Wshadow warnings

- fixed GH #127: Eliminate -Wshadow warnings
- SocketAddress small object optimization
This commit is contained in:
aleks-f
2013-03-17 01:28:01 -05:00
parent 42ff341cb9
commit 2392f34974
27 changed files with 538 additions and 277 deletions

View File

@@ -221,7 +221,7 @@ IPAddress::IPAddress(const struct sockaddr& sockaddr)
IPAddress::~IPAddress()
{
pImpl()->~IPAddressImpl();
destruct();
}
@@ -229,6 +229,7 @@ IPAddress& IPAddress::operator = (const IPAddress& addr)
{
if (&addr != this)
{
destruct();
if (addr.family() == IPAddress::IPv4)
new (_memory) IPv4AddressImpl(addr.addr());
else