[Positioner] Mobile: fix operator=() & operator==()

This commit is contained in:
Matteo Cypriani 2016-11-03 15:54:00 -04:00
parent df0c08c271
commit ecb9a689b5
1 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,10 @@ Mobile& Mobile::operator=(const Mobile &m)
this->WifiDevice::operator=(m) ;
last_request = nullptr;
last_results = m.last_results;
update_last_request();
return *this ;
}
@ -76,6 +80,9 @@ bool Mobile::operator==(const Mobile &m) const
if (this == &m)
return true ;
if (last_results != m.last_results)
return false;
return
this->WifiDevice::operator==(m) ;
}