Skip to content

Commit

Permalink
Error: Add TakeDescription()
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Aug 11, 2024
1 parent 8295fd9 commit 290c44f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class Error
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();

Expand Down

0 comments on commit 290c44f

Please sign in to comment.