diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-05 03:17:44 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-05 12:27:15 +0200 |
commit | a7a7e6245f74087641fa3f31436a14ab250bcea3 (patch) | |
tree | ecef20179014334310fb9f249fa808bf99e870bc /AK/Optional.h | |
parent | 9572c951524ac900d3082f762a4e197ea222703b (diff) | |
download | serenity-a7a7e6245f74087641fa3f31436a14ab250bcea3.zip |
AK: Decorate Optional<T> with [[nodisard]]
Diffstat (limited to 'AK/Optional.h')
-rw-r--r-- | AK/Optional.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/Optional.h b/AK/Optional.h index db9ee7b014..ccc0986d20 100644 --- a/AK/Optional.h +++ b/AK/Optional.h @@ -34,7 +34,7 @@ namespace AK { template<typename T> -class alignas(T) Optional { +class alignas(T) [[nodiscard]] Optional { public: Optional() {} |