Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

hle/result: Make ResultVal's move constructor as noexcept

Lioncashbe902fe06e20
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 3ebf7aadf2..c6b18cfba2 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -227,7 +227,7 @@ public:
}
}
- ResultVal(ResultVal&& o) : result_code(o.result_code) {
+ ResultVal(ResultVal&& o) noexcept : result_code(o.result_code) {
if (!o.empty()) {
new (&object) T(std::move(o.object));
}