summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-10-30 06:35:32 +0200
committerGitHub <noreply@github.com>2021-10-30 06:35:32 +0200
commit92159b210eebf8733be0e21221f0cb20980dd95f (patch)
tree3eb10ca04b7305cff7cafcf82b76f1272821bfce /src/core
parentMerge pull request #7241 from Morph1984/resultval-move-assignment (diff)
parenthle/result: Remove cv-qualifiers from Arg in MakeResult (diff)
downloadyuzu-92159b210eebf8733be0e21221f0cb20980dd95f.tar
yuzu-92159b210eebf8733be0e21221f0cb20980dd95f.tar.gz
yuzu-92159b210eebf8733be0e21221f0cb20980dd95f.tar.bz2
yuzu-92159b210eebf8733be0e21221f0cb20980dd95f.tar.lz
yuzu-92159b210eebf8733be0e21221f0cb20980dd95f.tar.xz
yuzu-92159b210eebf8733be0e21221f0cb20980dd95f.tar.zst
yuzu-92159b210eebf8733be0e21221f0cb20980dd95f.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/result.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 00fe70998..2c6b24848 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -349,8 +349,8 @@ template <typename T, typename... Args>
* copy or move constructing.
*/
template <typename Arg>
-[[nodiscard]] ResultVal<std::remove_reference_t<Arg>> MakeResult(Arg&& arg) {
- return ResultVal<std::remove_reference_t<Arg>>::WithCode(ResultSuccess, std::forward<Arg>(arg));
+[[nodiscard]] ResultVal<std::remove_cvref_t<Arg>> MakeResult(Arg&& arg) {
+ return ResultVal<std::remove_cvref_t<Arg>>::WithCode(ResultSuccess, std::forward<Arg>(arg));
}
/**