From 95f4709f7d37f85f2764b762c5577577eada74dd Mon Sep 17 00:00:00 2001 From: Kurt Nistelberger Date: Sat, 7 Jan 2023 17:56:16 -0800 Subject: [PATCH] match style old-commit-hash: 2b611862becd0cafbe6949961da04dfa4d252b4e --- selfdrive/ui/qt/maps/map.cc | 6 +++--- selfdrive/ui/qt/maps/map.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index 3e1d08740..c625564f1 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -237,7 +237,7 @@ void MapWindow::updateState(const UIState &s) { m_map->setLayoutProperty("navLayer", "visibility", "visible"); route_rcv_frame = sm.rcv_frame("navRoute"); - update_destination_marker(); + updateDestinationMarker(); } } @@ -275,7 +275,7 @@ void MapWindow::clearRoute() { if (!m_map.isNull()) { m_map->setLayoutProperty("navLayer", "visibility", "none"); m_map->setPitch(MIN_PITCH); - update_destination_marker(); + updateDestinationMarker(); } map_instructions->hideIfNoError(); @@ -363,7 +363,7 @@ void MapWindow::offroadTransition(bool offroad) { last_bearing = {}; } -void MapWindow::update_destination_marker() { +void MapWindow::updateDestinationMarker() { if (marker_id != -1) { m_map->removeAnnotation(marker_id); marker_id = -1; diff --git a/selfdrive/ui/qt/maps/map.h b/selfdrive/ui/qt/maps/map.h index 8151bdecf..0d8b93a5f 100644 --- a/selfdrive/ui/qt/maps/map.h +++ b/selfdrive/ui/qt/maps/map.h @@ -112,7 +112,7 @@ private: MapETA* map_eta; void clearRoute(); - void update_destination_marker(); + void updateDestinationMarker(); uint64_t route_rcv_frame = 0; private slots: