mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
GH #127: Eliminate -Wshadow warnings
- fixed GH #127: Eliminate -Wshadow warnings - SocketAddress small object optimization
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user