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