[Positioner] Fix Request::operator==()
This commit is contained in:
parent
6cffd61b0c
commit
8b3a31fe3b
|
@ -189,10 +189,13 @@ bool Request::operator==(const Request &source) const
|
||||||
if (this == &source)
|
if (this == &source)
|
||||||
return true ;
|
return true ;
|
||||||
|
|
||||||
bool real_position_equal =
|
bool real_position_equal ;
|
||||||
real_position &&
|
if (real_position == source.real_position)
|
||||||
source.real_position &&
|
real_position_equal = true ; // equal pointers
|
||||||
*real_position == *source.real_position ;
|
else if (real_position && source.real_position)
|
||||||
|
real_position_equal = *real_position == *source.real_position ;
|
||||||
|
else
|
||||||
|
real_position_equal = false ; // one of the two is NULL
|
||||||
|
|
||||||
return
|
return
|
||||||
real_position_equal &&
|
real_position_equal &&
|
||||||
|
|
Loading…
Reference in New Issue