mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02: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:
committed by
Shannon Booth
parent
d7deb6d58f
commit
002e993f68
Notes:
github-actions[bot]
2025-07-06 12:17:27 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/002e993f68d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5308 Reviewed-by: https://github.com/shannonbooth
@@ -18,8 +18,8 @@ class ConnectSourceDirective final : public Directive {
|
||||
public:
|
||||
virtual ~ConnectSourceDirective() = 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:
|
||||
ConnectSourceDirective(String name, Vector<String> value);
|
||||
|
||||
Reference in New Issue
Block a user