core/memory, core/hle/kernel: Use std::move where applicable

Avoids pointless copies
This commit is contained in:
Lioncash
2018-07-18 19:02:47 -04:00
parent 3d1e8f750c
commit 46458e7284
9 changed files with 26 additions and 16 deletions

View File

@ -59,12 +59,12 @@ public:
* associated ServerSession.
* @param server_session ServerSession associated with the connection.
*/
void ClientDisconnected(SharedPtr<ServerSession> server_session);
void ClientDisconnected(const SharedPtr<ServerSession>& server_session);
protected:
/// List of sessions that are connected to this handler.
/// A ServerSession whose server endpoint is an HLE implementation is kept alive by this list
// for the duration of the connection.
/// for the duration of the connection.
std::vector<SharedPtr<ServerSession>> connected_sessions;
};