From b558bbabab4fa1c2fa33b390294549e5683e110c Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Thu, 26 Aug 2021 00:33:27 +0800 Subject: [PATCH] Alert::equal: pass Alert by const reference (#22044) old-commit-hash: dec9addce019adde560f3b4bb2ca2f29ea502f32 --- selfdrive/ui/ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/ui.h b/selfdrive/ui/ui.h index f3229eee99..7ad3b8b562 100644 --- a/selfdrive/ui/ui.h +++ b/selfdrive/ui/ui.h @@ -55,7 +55,7 @@ typedef struct Alert { QString type; cereal::ControlsState::AlertSize size; AudibleAlert sound; - bool equal(Alert a2) { + bool equal(const Alert &a2) { return text1 == a2.text1 && text2 == a2.text2 && type == a2.type; } } Alert;