[Positioner] Eliminate a couple of C-style casts

master
Matteo Cypriani 10 years ago
parent f06c866f8f
commit ec8c1244cd

@ -123,7 +123,7 @@ ostream &operator<<(ostream &os, const CapturePoint &cp)
<< "Coordinates: " << cp.coordinates << '\n'
<< "Frequency: " << cp.frequency << " Hz" << '\n'
<< "Friis index: " << cp.friis_index << '\n'
<< (WifiDevice) cp ;
<< static_cast<WifiDevice>(cp) ;
return os ;
}

@ -84,7 +84,7 @@ bool Mobile::operator==(const Mobile &m) const
std::ostream &operator<<(std::ostream &os, const Mobile &m)
{
os << (WifiDevice) m ;
os << static_cast<WifiDevice>(m) ;
return os ;
}

@ -92,7 +92,7 @@ bool Waypoint::operator==(const Waypoint &wp) const
Waypoint::operator std::string() const
{
ostringstream csv ;
csv << (Point3D) *this ;
csv << static_cast<Point3D>(*this) ;
for (auto i = buildings.begin() ; i != buildings.end() ; ++i)
csv << ';' << (*i)->get_name() ;
@ -105,7 +105,7 @@ Waypoint::operator std::string() const
ostream &operator<<(ostream &os, const Waypoint &wp)
{
// Coordinates
os << (Point3D) wp ;
os << static_cast<Point3D>(wp) ;
// List of buildings
if (wp.buildings.empty())

Loading…
Cancel
Save