[Positioner] Mobile: fix operator=() & operator==()
This commit is contained in:
parent
df0c08c271
commit
ecb9a689b5
|
@ -67,6 +67,10 @@ Mobile& Mobile::operator=(const Mobile &m)
|
||||||
|
|
||||||
this->WifiDevice::operator=(m) ;
|
this->WifiDevice::operator=(m) ;
|
||||||
|
|
||||||
|
last_request = nullptr;
|
||||||
|
last_results = m.last_results;
|
||||||
|
update_last_request();
|
||||||
|
|
||||||
return *this ;
|
return *this ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,6 +80,9 @@ bool Mobile::operator==(const Mobile &m) const
|
||||||
if (this == &m)
|
if (this == &m)
|
||||||
return true ;
|
return true ;
|
||||||
|
|
||||||
|
if (last_results != m.last_results)
|
||||||
|
return false;
|
||||||
|
|
||||||
return
|
return
|
||||||
this->WifiDevice::operator==(m) ;
|
this->WifiDevice::operator==(m) ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue