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

pull/22046/head
Dean Lee 2021-08-26 00:33:27 +08:00 committed by GitHub
parent 82169da74c
commit dec9addce0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;