LibVideo: Make DecoderError getters const

This commit is contained in:
Zaggy1024 2022-10-29 18:34:15 -05:00 committed by Andreas Kling
parent cea7386ea8
commit 91fbfe1773
Notes: sideshowbarker 2024-07-17 08:42:05 +09:00

View file

@ -55,9 +55,9 @@ public:
return DecoderError::format(DecoderErrorCategory::NotImplemented, "{} is not implemented", location.function_name());
}
DecoderErrorCategory category() { return m_category; }
StringView description() { return m_description; }
StringView string_literal() { return m_description; }
DecoderErrorCategory category() const { return m_category; }
StringView description() const { return m_description; }
StringView string_literal() const { return m_description; }
private:
DecoderError(DecoderErrorCategory category, String description)