Qt: Const correctness

This commit is contained in:
Vicki Pfau 2023-07-16 15:27:39 -07:00
parent 51d5f4bfd1
commit 90b75e4c11
2 changed files with 2 additions and 2 deletions

View File

@ -338,7 +338,7 @@ void MultiplayerController::detachGame(CoreController* controller) {
emit gameDetached();
}
int MultiplayerController::playerId(CoreController* controller) {
int MultiplayerController::playerId(CoreController* controller) const {
for (int i = 0; i < m_players.count(); ++i) {
if (m_players[i].controller == controller) {
return i;

View File

@ -38,7 +38,7 @@ public:
void detachGame(CoreController*);
int attached();
int playerId(CoreController*);
int playerId(CoreController*) const;
signals:
void gameAttached();