[Positioner] Eliminate a couple of C-style casts
This commit is contained in:
parent
f06c866f8f
commit
ec8c1244cd
|
@ -123,7 +123,7 @@ ostream &operator<<(ostream &os, const CapturePoint &cp)
|
||||||
<< "Coordinates: " << cp.coordinates << '\n'
|
<< "Coordinates: " << cp.coordinates << '\n'
|
||||||
<< "Frequency: " << cp.frequency << " Hz" << '\n'
|
<< "Frequency: " << cp.frequency << " Hz" << '\n'
|
||||||
<< "Friis index: " << cp.friis_index << '\n'
|
<< "Friis index: " << cp.friis_index << '\n'
|
||||||
<< (WifiDevice) cp ;
|
<< static_cast<WifiDevice>(cp) ;
|
||||||
|
|
||||||
return os ;
|
return os ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ bool Mobile::operator==(const Mobile &m) const
|
||||||
|
|
||||||
std::ostream &operator<<(std::ostream &os, const Mobile &m)
|
std::ostream &operator<<(std::ostream &os, const Mobile &m)
|
||||||
{
|
{
|
||||||
os << (WifiDevice) m ;
|
os << static_cast<WifiDevice>(m) ;
|
||||||
|
|
||||||
return os ;
|
return os ;
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ bool Waypoint::operator==(const Waypoint &wp) const
|
||||||
Waypoint::operator std::string() const
|
Waypoint::operator std::string() const
|
||||||
{
|
{
|
||||||
ostringstream csv ;
|
ostringstream csv ;
|
||||||
csv << (Point3D) *this ;
|
csv << static_cast<Point3D>(*this) ;
|
||||||
|
|
||||||
for (auto i = buildings.begin() ; i != buildings.end() ; ++i)
|
for (auto i = buildings.begin() ; i != buildings.end() ; ++i)
|
||||||
csv << ';' << (*i)->get_name() ;
|
csv << ';' << (*i)->get_name() ;
|
||||||
|
@ -105,7 +105,7 @@ Waypoint::operator std::string() const
|
||||||
ostream &operator<<(ostream &os, const Waypoint &wp)
|
ostream &operator<<(ostream &os, const Waypoint &wp)
|
||||||
{
|
{
|
||||||
// Coordinates
|
// Coordinates
|
||||||
os << (Point3D) wp ;
|
os << static_cast<Point3D>(wp) ;
|
||||||
|
|
||||||
// List of buildings
|
// List of buildings
|
||||||
if (wp.buildings.empty())
|
if (wp.buildings.empty())
|
||||||
|
|
Loading…
Reference in New Issue