diff --git a/Net/src/IPAddressImpl.cpp b/Net/src/IPAddressImpl.cpp index 5097bbb5d..edf2faff4 100644 --- a/Net/src/IPAddressImpl.cpp +++ b/Net/src/IPAddressImpl.cpp @@ -107,8 +107,8 @@ IPv4AddressImpl::IPv4AddressImpl(const IPv4AddressImpl& addr) IPv4AddressImpl& IPv4AddressImpl::operator = (const IPv4AddressImpl& addr) { - if (this == &addr) - return *this; + if (this == &addr) + return *this; std::memcpy(&_addr, &addr._addr, sizeof(_addr)); return *this; @@ -377,8 +377,8 @@ IPv6AddressImpl::IPv6AddressImpl(const IPv6AddressImpl& addr): _scope(addr._scop IPv6AddressImpl& IPv6AddressImpl::operator = (const IPv6AddressImpl& addr) { - if (this == &addr) - return *this; + if (this == &addr) + return *this; _scope = addr._scope; std::memcpy(&_addr, &addr._addr, sizeof(_addr)); @@ -696,8 +696,8 @@ IPAddressImpl* IPv6AddressImpl::clone() const IPv6AddressImpl IPv6AddressImpl::operator & (const IPv6AddressImpl& addr) const { - if (_scope != addr._scope) - throw Poco::InvalidArgumentException("Scope ID of passed IPv6 address does not match with the source one."); + if (_scope != addr._scope) + throw Poco::InvalidArgumentException("Scope ID of passed IPv6 address does not match with the source one."); IPv6AddressImpl result(*this); #ifdef POCO_OS_FAMILY_WINDOWS @@ -721,8 +721,8 @@ IPv6AddressImpl IPv6AddressImpl::operator & (const IPv6AddressImpl& addr) const IPv6AddressImpl IPv6AddressImpl::operator | (const IPv6AddressImpl& addr) const { - if (_scope != addr._scope) - throw Poco::InvalidArgumentException("Scope ID of passed IPv6 address does not match with the source one."); + if (_scope != addr._scope) + throw Poco::InvalidArgumentException("Scope ID of passed IPv6 address does not match with the source one."); IPv6AddressImpl result(*this); #ifdef POCO_OS_FAMILY_WINDOWS @@ -746,8 +746,8 @@ IPv6AddressImpl IPv6AddressImpl::operator | (const IPv6AddressImpl& addr) const IPv6AddressImpl IPv6AddressImpl::operator ^ (const IPv6AddressImpl& addr) const { - if (_scope != addr._scope) - throw Poco::InvalidArgumentException("Scope ID of passed IPv6 address does not match with the source one."); + if (_scope != addr._scope) + throw Poco::InvalidArgumentException("Scope ID of passed IPv6 address does not match with the source one."); IPv6AddressImpl result(*this); diff --git a/Zip/src/ZipStream.cpp b/Zip/src/ZipStream.cpp index 09fe0b8f8..49425c5bc 100644 --- a/Zip/src/ZipStream.cpp +++ b/Zip/src/ZipStream.cpp @@ -174,7 +174,6 @@ int ZipStreamBuf::readFromDevice(char* buffer, std::streamsize length) // now push back the header to the stream, so that the ZipLocalFileHeader can read it Poco::Int32 size = static_cast(nfo.getFullHeaderSize()); _expectedCrc32 = nfo.getCRC32(); - const char* rawHeader = nfo.getRawHeader(); _pIstr->seekg(-size, std::ios::cur); if (!_pIstr->good()) throw Poco::IOException("Failed to seek on input stream"); if (!crcValid())