mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-10-01 03:43:42 +08:00
Alert::equal: pass Alert by const reference (#22044)
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user