From 1b5c37fa298f594bfa4f8132b08d1a602d1e5513 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Thu, 28 Oct 2021 03:58:41 -0400 Subject: 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. --- src/core/hle/result.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/hle') diff --git a/src/core/hle/result.h b/src/core/hle/result.h index ffef46794..00fe70998 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; } -- cgit v1.2.3