Explorar o código

LibPDF: Mark PDF::Error nodiscard

No behavior change. Prevents mistakes like the one fixed in 26de2fd0b2.
Nico Weber %!s(int64=2) %!d(string=hai) anos
pai
achega
e94f1e38d0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,