Address /W4 compiler warnings for Windows (#4910)

This commit is contained in:
Zach H 2023-10-15 20:31:13 -04:00 committed by GitHub
parent cb90a8356b
commit 186f4289e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
50 changed files with 279 additions and 272 deletions

View file

@ -103,15 +103,15 @@ QString Server_Card::setAttribute(CardAttribute attribute, const QString &avalue
return avalue;
}
void Server_Card::setCounter(int id, int value, Event_SetCardCounter *event)
void Server_Card::setCounter(int _id, int value, Event_SetCardCounter *event)
{
if (value)
counters.insert(id, value);
counters.insert(_id, value);
else
counters.remove(id);
counters.remove(_id);
if (event) {
event->set_counter_id(id);
event->set_counter_id(_id);
event->set_counter_value(value);
}
}