mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03: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
@ -34,7 +34,7 @@
|
||||
namespace AK {
|
||||
|
||||
template<typename T>
|
||||
class alignas(T) Optional {
|
||||
class alignas(T) [[nodiscard]] Optional {
|
||||
public:
|
||||
Optional() {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user