From 290c44f4c09ffcd6858ff6b8126d19d97d2701f9 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 11 Aug 2024 20:43:13 +1000 Subject: [PATCH] Error: Add TakeDescription() --- src/common/error.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/error.h b/src/common/error.h index b5287ae8c..23c23511b 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -32,6 +32,7 @@ public: ALWAYS_INLINE Type GetType() const { return m_type; } ALWAYS_INLINE bool IsValid() const { return (m_type != Type::None); } ALWAYS_INLINE const std::string& GetDescription() const { return m_description; } + ALWAYS_INLINE std::string TakeDescription() { return std::move(m_description); } void Clear();