Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11749 from lioncash/copy
NetPlayServer: Prevent unnecessary copies in GetInterfaceSet()
  • Loading branch information
AdmiralCurtiss committed Apr 11, 2023
2 parents d6ae7ad + 81493ee commit 31d2ded
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Core/Core/NetPlayServer.cpp
Expand Up @@ -2266,8 +2266,7 @@ u16 NetPlayServer::GetPort() const
std::unordered_set<std::string> NetPlayServer::GetInterfaceSet() const
{
std::unordered_set<std::string> result;
auto lst = GetInterfaceListInternal();
for (auto list_entry : lst)
for (const auto& list_entry : GetInterfaceListInternal())
result.emplace(list_entry.first);
return result;
}
Expand Down

0 comments on commit 31d2ded

Please sign in to comment.