LibPDF: Mark PDF::Error nodiscard

No behavior change. Prevents mistakes like the one fixed in 26de2fd0b2.
This commit is contained in:
Nico Weber 2023-07-12 10:26:09 -04:00 committed by Linus Groh
commit e94f1e38d0
Notes: sideshowbarker 2024-07-17 09:49:48 +09:00

View file

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