mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
LibWeb: Fix a few const-ness issues
This commit is contained in:
parent
70a2ca7fc0
commit
c0b2fa74ac
36 changed files with 123 additions and 121 deletions
|
@ -31,7 +31,7 @@ public:
|
|||
JavaScriptEngine,
|
||||
};
|
||||
|
||||
static NonnullOwnPtr<Task> create(Source source, DOM::Document* document, JS::SafeFunction<void()> steps)
|
||||
static NonnullOwnPtr<Task> create(Source source, DOM::Document const* document, JS::SafeFunction<void()> steps)
|
||||
{
|
||||
return adopt_own(*new Task(source, document, move(steps)));
|
||||
}
|
||||
|
@ -40,17 +40,16 @@ public:
|
|||
Source source() const { return m_source; }
|
||||
void execute();
|
||||
|
||||
DOM::Document* document();
|
||||
DOM::Document const* document() const;
|
||||
|
||||
bool is_runnable() const;
|
||||
|
||||
private:
|
||||
Task(Source, DOM::Document*, JS::SafeFunction<void()> steps);
|
||||
Task(Source, DOM::Document const*, JS::SafeFunction<void()> steps);
|
||||
|
||||
Source m_source { Source::Unspecified };
|
||||
JS::SafeFunction<void()> m_steps;
|
||||
JS::Handle<DOM::Document> m_document;
|
||||
JS::Handle<DOM::Document const> m_document;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue