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

old-commit-hash: dec9addce019adde560f3b4bb2ca2f29ea502f32
This commit is contained in:
Dean Lee
2021-08-26 00:33:27 +08:00
committed by GitHub
parent 3ae93f1d2f
commit b558bbabab
+1 -1
View File
@@ -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;