浏览代码

LibPDF: Mark PDF::Error nodiscard

No behavior change. Prevents mistakes like the one fixed in 26de2fd0b2.
Nico Weber 2 年之前
父节点
当前提交
e94f1e38d0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,