mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibWeb: Mark WebIDL::ExceptionOr<T>
as [[nodiscard]]
This commit is contained in:
parent
acfb546048
commit
a80da456a5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue