Skip to content
Permalink
Browse files

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.
  • Loading branch information...
lioncash committed Aug 4, 2019
1 parent 7f6abfb commit 5220922a2237cbf868516269f9513a9aaf59558b
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/UICommon/NetPlayIndex.cpp
@@ -221,7 +221,7 @@ void NetPlayIndex::SetPlayerCount(int 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);
}

0 comments on commit 5220922

Please sign in to comment.
You can’t perform that action at this time.