From e94f1e38d067d26e4191c149de79665052f1f26d Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 12 Jul 2023 10:26:09 -0400 Subject: [PATCH] LibPDF: Mark PDF::Error nodiscard No behavior change. Prevents mistakes like the one fixed in 26de2fd0b2. --- Userland/Libraries/LibPDF/Error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibPDF/Error.h b/Userland/Libraries/LibPDF/Error.h index 99dbb06b6f..9ddc7a7684 100644 --- a/Userland/Libraries/LibPDF/Error.h +++ b/Userland/Libraries/LibPDF/Error.h @@ -12,7 +12,7 @@ namespace PDF { -class Error { +class [[nodiscard]] Error { public: enum class Type { Parse,