diff --git a/Runtime/CToken.cpp b/Runtime/CToken.cpp index d3cc11850..a9a47b681 100644 --- a/Runtime/CToken.cpp +++ b/Runtime/CToken.cpp @@ -128,7 +128,7 @@ CToken::CToken(const CToken& other) : x0_objRef(other.x0_objRef) { Lock(); } } -CToken::CToken(CToken&& other) : x0_objRef(other.x0_objRef), x4_lockHeld(other.x4_lockHeld) { +CToken::CToken(CToken&& other) noexcept : x0_objRef(other.x0_objRef), x4_lockHeld(other.x4_lockHeld) { other.x0_objRef = nullptr; other.x4_lockHeld = false; } diff --git a/Runtime/CToken.hpp b/Runtime/CToken.hpp index fc5ee6332..906786aa1 100644 --- a/Runtime/CToken.hpp +++ b/Runtime/CToken.hpp @@ -85,7 +85,7 @@ public: CToken& operator=(CToken&& other); CToken() = default; CToken(const CToken& other); - CToken(CToken&& other); + CToken(CToken&& other) noexcept; CToken(IObj* obj); CToken(std::unique_ptr&& obj); const SObjectTag* GetObjectTag() const;