Forráskód Böngészése

LibPDF: Mark PDF::Error nodiscard

No behavior change. Prevents mistakes like the one fixed in 26de2fd0b2.
Nico Weber 2 éve
szülő
commit
e94f1e38d0
1 módosított fájl, 1 hozzáadás és 1 törlés
  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,