From 4545b9e63785072a3f189d415fef7c6f59da2473 Mon Sep 17 00:00:00 2001 From: deanlee Date: Sat, 6 Nov 2021 05:20:03 +0800 Subject: [PATCH] remove trailing underscore --- selfdrive/ui/soundd.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/ui/soundd.cc b/selfdrive/ui/soundd.cc index cb24537d71..8e8f5348a9 100644 --- a/selfdrive/ui/soundd.cc +++ b/selfdrive/ui/soundd.cc @@ -67,8 +67,8 @@ public: } void setAlert(AudibleAlert sound) { - if (current_sound_ != sound) { - current_sound_ = sound; + if (current_sound != sound) { + current_sound = sound; // stop sounds for (auto &[s, loops] : sounds) { // Only stop repeating sounds @@ -87,7 +87,7 @@ public: } private: - AudibleAlert current_sound_ = AudibleAlert::NONE; + AudibleAlert current_sound = AudibleAlert::NONE; QMap> sounds; SubMaster sm; };