diff --git a/src/dsr/model/dsr-option-header.cc b/src/dsr/model/dsr-option-header.cc index 8d2b6d778..f02f86ea7 100644 --- a/src/dsr/model/dsr-option-header.cc +++ b/src/dsr/model/dsr-option-header.cc @@ -277,7 +277,7 @@ DsrOptionRreqHeader::~DsrOptionRreqHeader () void DsrOptionRreqHeader::SetNumberAddress (uint8_t n) { m_ipv4Address.clear (); - m_ipv4Address.assign (n, Ipv4Address ("")); + m_ipv4Address.assign (n, Ipv4Address ()); } Ipv4Address DsrOptionRreqHeader::GetTarget () @@ -425,7 +425,7 @@ DsrOptionRrepHeader::~DsrOptionRrepHeader () void DsrOptionRrepHeader::SetNumberAddress (uint8_t n) { m_ipv4Address.clear (); - m_ipv4Address.assign (n, Ipv4Address ("")); + m_ipv4Address.assign (n, Ipv4Address ()); } void DsrOptionRrepHeader::SetNodesAddress (std::vector ipv4Address) @@ -568,7 +568,7 @@ uint8_t DsrOptionSRHeader::GetSalvage () const void DsrOptionSRHeader::SetNumberAddress (uint8_t n) { m_ipv4Address.clear (); - m_ipv4Address.assign (n, Ipv4Address ("")); + m_ipv4Address.assign (n, Ipv4Address ()); } void DsrOptionSRHeader::SetNodesAddress (std::vector ipv4Address)