From a80da456a5d0e2e114a2f415ed295389b92a510d Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 30 Oct 2022 17:50:52 +0000 Subject: [PATCH] LibWeb: Mark `WebIDL::ExceptionOr` as `[[nodiscard]]` --- Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h b/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h index 9ce61493b6..1dded4e8f2 100644 --- a/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h +++ b/Userland/Libraries/LibWeb/WebIDL/ExceptionOr.h @@ -33,7 +33,7 @@ struct SimpleException { }; template -class ExceptionOr { +class [[nodiscard]] ExceptionOr { public: ExceptionOr() requires(IsSame) : m_result(Empty {}) @@ -119,7 +119,7 @@ private: }; template<> -class ExceptionOr : public ExceptionOr { +class [[nodiscard]] ExceptionOr : public ExceptionOr { public: using ExceptionOr::ExceptionOr; };