mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Fix a few const-ness issues
This commit is contained in:
committed by
Linus Groh
parent
70a2ca7fc0
commit
c0b2fa74ac
@@ -9,7 +9,7 @@
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
Task::Task(Source source, DOM::Document* document, JS::SafeFunction<void()> steps)
|
||||
Task::Task(Source source, DOM::Document const* document, JS::SafeFunction<void()> steps)
|
||||
: m_source(source)
|
||||
, m_steps(move(steps))
|
||||
, m_document(JS::make_handle(document))
|
||||
@@ -30,11 +30,6 @@ bool Task::is_runnable() const
|
||||
return !m_document.ptr() || m_document->is_fully_active();
|
||||
}
|
||||
|
||||
DOM::Document* Task::document()
|
||||
{
|
||||
return m_document.ptr();
|
||||
}
|
||||
|
||||
DOM::Document const* Task::document() const
|
||||
{
|
||||
return m_document.ptr();
|
||||
|
||||
Reference in New Issue
Block a user