aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-10-28 03:58:41 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-10-28 04:00:21 -0400
commit55362bccd9b007bc7a98babb248bf6ffd809f5d1 (patch)
tree8e01768f01a96ac14acb8175f5f31b3cd8b06776 /src/core
parent696c2cec318138cf93beee5b28f7a72da729c1d7 (diff)
hle/result: Declare copy/move constructor/assignment as noexcept
While we're at it, we can also declare these copy/move constructor/assignment as noexcept.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/result.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index ffef467948..00fe709982 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -206,7 +206,7 @@ public:
return result;
}
- ResultVal(const ResultVal& o) : result_code(o.result_code) {
+ ResultVal(const ResultVal& o) noexcept : result_code(o.result_code) {
if (!o.empty()) {
new (&object) T(o.object);
}
@@ -224,7 +224,7 @@ public:
}
}
- ResultVal& operator=(const ResultVal& o) {
+ ResultVal& operator=(const ResultVal& o) noexcept {
if (this == &o) {
return *this;
}
@@ -244,7 +244,7 @@ public:
return *this;
}
- ResultVal& operator=(ResultVal&& o) {
+ ResultVal& operator=(ResultVal&& o) noexcept {
if (this == &o) {
return *this;
}