diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-04-06 01:41:43 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-04-06 01:42:03 -0400 |
| commit | 7a7ffa602d9cae6f5fb25b83d5a107e576d82b06 (patch) | |
| tree | a599221fe5fea442ca6e488f2fae7b0eab4d0c2d /src/core/hle/kernel/server_session.h | |
| parent | 04d265562f76a76118725927ec096faa5ac86380 (diff) | |
kernel/server_session: Return a std::pair from CreateSessionPair()
Keeps the return type consistent with the function name. While we're at
it, we can also reduce the amount of boilerplate involved with handling
these by using structured bindings.
Diffstat (limited to 'src/core/hle/kernel/server_session.h')
| -rw-r--r-- | src/core/hle/kernel/server_session.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/server_session.h b/src/core/hle/kernel/server_session.h index 3429a326f..09b835ff8 100644 --- a/src/core/hle/kernel/server_session.h +++ b/src/core/hle/kernel/server_session.h @@ -6,6 +6,7 @@ #include <memory> #include <string> +#include <utility> #include <vector> #include "core/hle/kernel/object.h" @@ -58,7 +59,7 @@ public: return parent.get(); } - using SessionPair = std::tuple<SharedPtr<ServerSession>, SharedPtr<ClientSession>>; + using SessionPair = std::pair<SharedPtr<ServerSession>, SharedPtr<ClientSession>>; /** * Creates a pair of ServerSession and an associated ClientSession. |
