mirror of https://github.com/mgba-emu/mgba.git
Qt: Const correctness
This commit is contained in:
parent
51d5f4bfd1
commit
90b75e4c11
|
@ -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;
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
void detachGame(CoreController*);
|
||||
|
||||
int attached();
|
||||
int playerId(CoreController*);
|
||||
int playerId(CoreController*) const;
|
||||
|
||||
signals:
|
||||
void gameAttached();
|
||||
|
|
Loading…
Reference in New Issue