mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Mark WebIDL::ExceptionOr<T> as [[nodiscard]]
This commit is contained in:
@@ -33,7 +33,7 @@ struct SimpleException {
|
||||
};
|
||||
|
||||
template<typename ValueType>
|
||||
class ExceptionOr {
|
||||
class [[nodiscard]] ExceptionOr {
|
||||
public:
|
||||
ExceptionOr() requires(IsSame<ValueType, Empty>)
|
||||
: m_result(Empty {})
|
||||
@@ -119,7 +119,7 @@ private:
|
||||
};
|
||||
|
||||
template<>
|
||||
class ExceptionOr<void> : public ExceptionOr<Empty> {
|
||||
class [[nodiscard]] ExceptionOr<void> : public ExceptionOr<Empty> {
|
||||
public:
|
||||
using ExceptionOr<Empty>::ExceptionOr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user