mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
LibWeb/CSP: Add [[nodiscard]] to result enums
This makes it so we don't have to remember to specify [[nodiscard]] on functions that return them.
This commit is contained in:
parent
d7deb6d58f
commit
002e993f68
Notes:
github-actions[bot]
2025-07-06 12:17:27 +00:00
Author: https://github.com/Lubrsi
Commit: 002e993f68
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5308
Reviewed-by: https://github.com/shannonbooth
8 changed files with 31 additions and 31 deletions
|
@ -18,8 +18,8 @@ class FrameSourceDirective final : public Directive {
|
|||
public:
|
||||
virtual ~FrameSourceDirective() = default;
|
||||
|
||||
[[nodiscard]] virtual Result pre_request_check(GC::Heap&, GC::Ref<Fetch::Infrastructure::Request const>, GC::Ref<Policy const>) const override;
|
||||
[[nodiscard]] virtual Result post_request_check(GC::Heap&, GC::Ref<Fetch::Infrastructure::Request const>, GC::Ref<Fetch::Infrastructure::Response const>, GC::Ref<Policy const>) const override;
|
||||
virtual Result pre_request_check(GC::Heap&, GC::Ref<Fetch::Infrastructure::Request const>, GC::Ref<Policy const>) const override;
|
||||
virtual Result post_request_check(GC::Heap&, GC::Ref<Fetch::Infrastructure::Request const>, GC::Ref<Fetch::Infrastructure::Response const>, GC::Ref<Policy const>) const override;
|
||||
|
||||
private:
|
||||
FrameSourceDirective(String name, Vector<String> value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue