mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb: Fix a few const-ness issues
This commit is contained in:
parent
70a2ca7fc0
commit
c0b2fa74ac
Notes:
sideshowbarker
2024-07-16 23:21:29 +09:00
Author: https://github.com/mattco98
Commit: c0b2fa74ac
Pull-request: https://github.com/SerenityOS/serenity/pull/17620
Issue: https://github.com/SerenityOS/serenity/issues/16988
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/linusg
36 changed files with 123 additions and 121 deletions
|
@ -34,8 +34,8 @@ public:
|
|||
[[nodiscard]] JS::NonnullGCPtr<FetchController> controller() const { return m_controller; }
|
||||
[[nodiscard]] JS::NonnullGCPtr<FetchTimingInfo> timing_info() const { return m_timing_info; }
|
||||
|
||||
[[nodiscard]] JS::NonnullGCPtr<FetchAlgorithms> algorithms() const { return m_algorithms; }
|
||||
void set_algorithms(JS::NonnullGCPtr<FetchAlgorithms> algorithms) { m_algorithms = algorithms; }
|
||||
[[nodiscard]] JS::NonnullGCPtr<FetchAlgorithms const> algorithms() const { return m_algorithms; }
|
||||
void set_algorithms(JS::NonnullGCPtr<FetchAlgorithms const> algorithms) { m_algorithms = algorithms; }
|
||||
|
||||
[[nodiscard]] TaskDestination& task_destination() { return m_task_destination; }
|
||||
[[nodiscard]] TaskDestination const& task_destination() const { return m_task_destination; }
|
||||
|
@ -74,7 +74,7 @@ private:
|
|||
// https://fetch.spec.whatwg.org/#fetch-params-process-response-consume-body
|
||||
// process response consume body (default null)
|
||||
// Null or an algorithm.
|
||||
JS::NonnullGCPtr<FetchAlgorithms> m_algorithms;
|
||||
JS::NonnullGCPtr<FetchAlgorithms const> m_algorithms;
|
||||
|
||||
// https://fetch.spec.whatwg.org/#fetch-params-task-destination
|
||||
// task destination (default null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue