mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 20:15:46 +00:00
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.
This commit is contained in:
parent
696c2cec31
commit
55362bccd9
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue