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:
parent
7f6abfb0bf
commit
5220922a22
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue