Clang format/tidy fixes for radar_site_line

This commit is contained in:
AdenKoperczak 2025-05-03 10:24:02 -04:00
parent 33f92bcda5
commit ef197bf578
No known key found for this signature in database
GPG key ID: 9843017036F62EE7
4 changed files with 10 additions and 11 deletions

View file

@ -365,8 +365,8 @@ bool RadarProductLayer::RunMousePicking(
const double radarLatitude = context()->radar_site()->latitude(); const double radarLatitude = context()->radar_site()->latitude();
const double radarLongitude = context()->radar_site()->longitude(); const double radarLongitude = context()->radar_site()->longitude();
const auto distanceMeters = util::GeographicLib::GetDistance( const auto distanceMeters =
mouseGeoCoords.latitude_, util::GeographicLib::GetDistance(mouseGeoCoords.latitude_,
mouseGeoCoords.longitude_, mouseGeoCoords.longitude_,
radarLatitude, radarLatitude,
radarLongitude); radarLongitude);

View file

@ -27,8 +27,7 @@ class RadarSiteLayer::Impl
{ {
public: public:
explicit Impl(RadarSiteLayer* self, std::shared_ptr<MapContext>& context) : explicit Impl(RadarSiteLayer* self, std::shared_ptr<MapContext>& context) :
self_ {self}, self_ {self}, geoLines_ {std::make_shared<gl::draw::GeoLines>(context)}
geoLines_ {std::make_shared<gl::draw::GeoLines>(context)}
{ {
geoLines_->StartLines(); geoLines_->StartLines();
radarSiteLines_[0] = geoLines_->AddLine(); radarSiteLines_[0] = geoLines_->AddLine();
@ -71,7 +70,8 @@ public:
}; };
RadarSiteLayer::RadarSiteLayer(std::shared_ptr<MapContext> context) : RadarSiteLayer::RadarSiteLayer(std::shared_ptr<MapContext> context) :
DrawLayer(context, "RadarSiteLayer"), p(std::make_unique<Impl>(this, context)) DrawLayer(context, "RadarSiteLayer"),
p(std::make_unique<Impl>(this, context))
{ {
} }

View file

@ -295,7 +295,7 @@ GetRadarBeamAltititude(units::length::meters<double> range,
units::angle::degrees<double> elevation, units::angle::degrees<double> elevation,
units::length::meters<double> height) units::length::meters<double> height)
{ {
static const units::length::meters<double> earthRadius {6367444 * 4/3}; static const units::length::meters<double> earthRadius {6367444 * 4 / 3};
height += earthRadius; height += earthRadius;

View file

@ -135,7 +135,6 @@ GetRadarBeamAltititude(units::length::meters<double> range,
units::angle::degrees<double> elevation, units::angle::degrees<double> elevation,
units::length::meters<double> height); units::length::meters<double> height);
} // namespace GeographicLib } // namespace GeographicLib
} // namespace util } // namespace util
} // namespace qt } // namespace qt