From ecb9a689b576006264eb94b8b475babe115731dc Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Thu, 3 Nov 2016 15:54:00 -0400 Subject: [PATCH] [Positioner] Mobile: fix operator=() & operator==() --- owlps-positioner/mobile.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/owlps-positioner/mobile.cc b/owlps-positioner/mobile.cc index b03cd82..fec9c11 100644 --- a/owlps-positioner/mobile.cc +++ b/owlps-positioner/mobile.cc @@ -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) ; }