mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
AK: Decorate Optional<T> with [[nodisard]]
This commit is contained in:
parent
9572c95152
commit
a7a7e6245f
Notes:
sideshowbarker
2024-07-19 04:17:09 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/a7a7e6245f7 Pull-request: https://github.com/SerenityOS/serenity/pull/3005
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
|||
namespace AK {
|
||||
|
||||
template<typename T>
|
||||
class alignas(T) Optional {
|
||||
class alignas(T) [[nodiscard]] Optional {
|
||||
public:
|
||||
Optional() {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue