Przeglądaj źródła

LibPDF: Mark PDF::Error nodiscard

No behavior change. Prevents mistakes like the one fixed in 26de2fd0b2.
Nico Weber 2 lat temu
rodzic
commit
e94f1e38d0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Userland/Libraries/LibPDF/Error.h

+ 1 - 1
Userland/Libraries/LibPDF/Error.h

@@ -12,7 +12,7 @@
 
 namespace PDF {
 
-class Error {
+class [[nodiscard]] Error {
 public:
     enum class Type {
         Parse,