mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb+LibJS: Use JS::GCPtr for pointers to GC-allocated objects
Fixes warnings found by LibJSGCVerifier
This commit is contained in:
parent
ed97946975
commit
6ac43274b2
Notes:
sideshowbarker
2024-07-17 07:20:49 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 6ac43274b2
Pull-request: https://github.com/SerenityOS/serenity/pull/22252
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/trflynn89
14 changed files with 31 additions and 31 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
void start_timer() { m_load_timer.start(); }
|
||||
Duration load_time() const { return m_load_timer.elapsed_time(); }
|
||||
|
||||
Optional<Page&>& page() { return m_page; }
|
||||
JS::GCPtr<Page> page() { return m_page; }
|
||||
void set_page(Page& page) { m_page = page; }
|
||||
|
||||
unsigned hash() const
|
||||
|
@ -79,7 +79,7 @@ private:
|
|||
HashMap<DeprecatedString, DeprecatedString, CaseInsensitiveStringTraits> m_headers;
|
||||
ByteBuffer m_body;
|
||||
Core::ElapsedTimer m_load_timer;
|
||||
Optional<Page&> m_page;
|
||||
JS::GCPtr<Page> m_page;
|
||||
bool m_main_resource { false };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue