From 5220922a2237cbf868516269f9513a9aaf59558b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 4 Aug 2019 12:16:16 -0400 Subject: [PATCH] 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. --- Source/Core/UICommon/NetPlayIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/UICommon/NetPlayIndex.cpp b/Source/Core/UICommon/NetPlayIndex.cpp index 1606b61a76..a55121c32b 100644 --- a/Source/Core/UICommon/NetPlayIndex.cpp +++ b/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); }