summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2019-03-10 18:34:17 -0400
committerGravatar Lioncash2019-03-10 18:34:20 -0400
commit0c28ab92e66146bb8d4190ff76cd7f5512ee1d3a (patch)
tree73d63dc2175becf28042f02849c140f20f21a19d
parentcore/hle/result: Amend error in comment description for ResultCode (diff)
downloadyuzu-0c28ab92e66146bb8d4190ff76cd7f5512ee1d3a.tar.gz
yuzu-0c28ab92e66146bb8d4190ff76cd7f5512ee1d3a.tar.xz
yuzu-0c28ab92e66146bb8d4190ff76cd7f5512ee1d3a.zip
core/hle/result: Remove now-unnecessary manually defined copy assignment operator
Previously this was required, as BitField wasn't trivially copyable. BitField has since been made trivially copyable, so now this isn't required anymore.
-rw-r--r--src/core/hle/result.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 46116c40a..ab84f5ddc 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -128,11 +128,6 @@ union ResultCode {
128 constexpr ResultCode(ErrorModule module_, u32 description_) 128 constexpr ResultCode(ErrorModule module_, u32 description_)
129 : raw(module.FormatValue(module_) | description.FormatValue(description_)) {} 129 : raw(module.FormatValue(module_) | description.FormatValue(description_)) {}
130 130
131 constexpr ResultCode& operator=(const ResultCode& o) {
132 raw = o.raw;
133 return *this;
134 }
135
136 constexpr bool IsSuccess() const { 131 constexpr bool IsSuccess() const {
137 return raw == 0; 132 return raw == 0;
138 } 133 }