mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
UICommon/NetPlayIndex: Take NetPlaySession by const reference for Add()
This isn't std::moved wholesale into a member variable or further std::moved into another function, so it's better to take it by const reference here to avoid unnecessary reallocations of contained std::string instances.
This commit is contained in:
parent
0a67a40e7c
commit
2830fe820d
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ void NetPlayIndex::NotificationLoop()
|
|||
}
|
||||
}
|
||||
|
||||
bool NetPlayIndex::Add(NetPlaySession session)
|
||||
bool NetPlayIndex::Add(const NetPlaySession& session)
|
||||
{
|
||||
Common::HttpRequest request;
|
||||
auto response = request.Get(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue