Common: Return rvalue reference from Error::TakeDescription()

Can avoid an additional copy.
16mb
Stenzek 4 months ago
parent fd7d4a3160
commit 599172165e
No known key found for this signature in database

@ -31,7 +31,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); }
ALWAYS_INLINE std::string&& TakeDescription() { return std::move(m_description); }
void Clear();

Loading…
Cancel
Save