Alert::equal: pass Alert by const reference (#22044)

old-commit-hash: dec9addce0
commatwo_master
Dean Lee 4 years ago committed by GitHub
parent 3ae93f1d2f
commit b558bbabab
  1. 2
      selfdrive/ui/ui.h

@ -55,7 +55,7 @@ typedef struct Alert {
QString type; QString type;
cereal::ControlsState::AlertSize size; cereal::ControlsState::AlertSize size;
AudibleAlert sound; AudibleAlert sound;
bool equal(Alert a2) { bool equal(const Alert &a2) {
return text1 == a2.text1 && text2 == a2.text2 && type == a2.type; return text1 == a2.text1 && text2 == a2.text2 && type == a2.type;
} }
} Alert; } Alert;

Loading…
Cancel
Save