From 28513c5177a462aef9a5d7137c35cc0a656348ec Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Mon, 5 Nov 2018 21:28:45 -0500 Subject: [PATCH] ResultCode: use default copy assignment Our definition of the copy assignment is equivalent to the default one, but prevents the type being trivially copyable --- src/core/hle/result.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/hle/result.h b/src/core/hle/result.h index 47b6e2b233..1543d7bd82 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -216,10 +216,7 @@ union ResultCode { : raw(description.FormatValue(description_) | module.FormatValue(module_) | summary.FormatValue(summary_) | level.FormatValue(level_)) {} - constexpr ResultCode& operator=(const ResultCode& o) { - raw = o.raw; - return *this; - } + constexpr ResultCode& operator=(const ResultCode& o) = default; constexpr bool IsSuccess() const { return is_error.ExtractValue(raw) == 0;