mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
UICommon/NetPlayIndex: Allow move semantics in SetGame()
If the parameter is const, then a move won't actually be able to occur, making the std::move non-functional. We can remove the const qualifier to remedy this.
This commit is contained in:
@ -221,7 +221,7 @@ void NetPlayIndex::SetPlayerCount(int player_count)
|
|||||||
m_player_count = player_count;
|
m_player_count = player_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetPlayIndex::SetGame(const std::string game)
|
void NetPlayIndex::SetGame(std::string game)
|
||||||
{
|
{
|
||||||
m_game = std::move(game);
|
m_game = std::move(game);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user