From 1ff9ad4e7c5bee8081052f46b1acfb109731313b Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Thu, 28 Oct 2021 02:52:43 -0400 Subject: [PATCH] hle/result: Remove cv-qualifiers from Arg in MakeResult This removes the const qualification for types when MakeResult(arg) is used in a const member function, allowing for automatic deduction and removing the need to manually specify the non-const type as the template argument. --- src/core/hle/result.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/result.h b/src/core/hle/result.h index a755008d5..30025c790 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -329,8 +329,8 @@ template * copy or move constructing. */ template -[[nodiscard]] ResultVal> MakeResult(Arg&& arg) { - return ResultVal>::WithCode(ResultSuccess, std::forward(arg)); +[[nodiscard]] ResultVal> MakeResult(Arg&& arg) { + return ResultVal>::WithCode(ResultSuccess, std::forward(arg)); } /**