ip: remove unneeded assignment operator
the constructor handles this for us
This commit is contained in:
parent
5e597eef25
commit
7f19e2bcce
13
ip.cpp.rl
13
ip.cpp.rl
@ -54,19 +54,6 @@ ipv4::ip::ip (uint8_t a, uint8_t b, uint8_t c, uint8_t d)
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
ipv4::ip&
|
||||
ipv4::ip::operator= (const ipv4::ip &rhs)
|
||||
{
|
||||
m_octets[0] = rhs.m_octets[0];
|
||||
m_octets[1] = rhs.m_octets[1];
|
||||
m_octets[2] = rhs.m_octets[2];
|
||||
m_octets[3] = rhs.m_octets[3];
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ipv4::ip::operator== (const ipv4::ip &rhs) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user