Sfoglia il codice sorgente

LibPDF: Mark PDF::Error nodiscard

No behavior change. Prevents mistakes like the one fixed in 26de2fd0b2.
Nico Weber 2 anni fa
parent
commit
e94f1e38d0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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,