diff options
| author | 2017-02-05 00:29:07 +0100 | |
|---|---|---|
| committer | 2017-02-05 00:29:07 +0100 | |
| commit | 2ee472b9c7123fe8b70a14311312e268635b3700 (patch) | |
| tree | 154a55f912c5cce2f43c54076e25ec443dcfa755 /src/core | |
| parent | fix comments alignment (diff) | |
| download | yuzu-2ee472b9c7123fe8b70a14311312e268635b3700.tar.gz yuzu-2ee472b9c7123fe8b70a14311312e268635b3700.tar.xz yuzu-2ee472b9c7123fe8b70a14311312e268635b3700.zip | |
fix wwylele's comment and use typename in templates
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/ipc_helpers.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 68508caba..323158bb5 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h | |||
| @@ -53,8 +53,8 @@ public: | |||
| 53 | void Push(u32 value) { | 53 | void Push(u32 value) { |
| 54 | cmdbuf[index++] = value; | 54 | cmdbuf[index++] = value; |
| 55 | } | 55 | } |
| 56 | template <typename First, class... Other> | 56 | template <typename First, typename... Other> |
| 57 | void Push(First first_value, const Other&... other_values) { | 57 | void Push(const First& first_value, const Other&... other_values) { |
| 58 | Push(first_value); | 58 | Push(first_value); |
| 59 | Push(other_values...); | 59 | Push(other_values...); |
| 60 | } | 60 | } |
| @@ -144,7 +144,7 @@ public: | |||
| 144 | template <typename T> | 144 | template <typename T> |
| 145 | void Pop(T& value); | 145 | void Pop(T& value); |
| 146 | 146 | ||
| 147 | template <typename First, class... Other> | 147 | template <typename First, typename... Other> |
| 148 | void Pop(First& first_value, Other&... other_values); | 148 | void Pop(First& first_value, Other&... other_values); |
| 149 | 149 | ||
| 150 | Kernel::Handle PopHandle(); | 150 | Kernel::Handle PopHandle(); |
| @@ -211,7 +211,7 @@ void RequestParser::Pop(T& value) { | |||
| 211 | value = Pop<T>(); | 211 | value = Pop<T>(); |
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | template <typename First, class... Other> | 214 | template <typename First, typename... Other> |
| 215 | void RequestParser::Pop(First& first_value, Other&... other_values) { | 215 | void RequestParser::Pop(First& first_value, Other&... other_values) { |
| 216 | first_value = Pop<First>(); | 216 | first_value = Pop<First>(); |
| 217 | Pop(other_values...); | 217 | Pop(other_values...); |