mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:37:46 +00:00
Everywhere: Pass AK::StringView by value
This commit is contained in:
parent
ad5d217e76
commit
8b1108e485
392 changed files with 978 additions and 978 deletions
|
@ -705,7 +705,7 @@ JS::Interpreter& Document::interpreter()
|
|||
return *m_interpreter;
|
||||
}
|
||||
|
||||
JS::Value Document::run_javascript(const StringView& source, const StringView& filename)
|
||||
JS::Value Document::run_javascript(StringView source, StringView filename)
|
||||
{
|
||||
auto parser = JS::Parser(JS::Lexer(source, filename));
|
||||
auto program = parser.parse_program();
|
||||
|
|
|
@ -177,7 +177,7 @@ public:
|
|||
JS::Realm& realm();
|
||||
JS::Interpreter& interpreter();
|
||||
|
||||
JS::Value run_javascript(const StringView& source, const StringView& filename = "(unknown)");
|
||||
JS::Value run_javascript(StringView source, StringView filename = "(unknown)");
|
||||
|
||||
NonnullRefPtr<Element> create_element(const String& tag_name);
|
||||
NonnullRefPtr<Element> create_element_ns(const String& namespace_, const String& qualifed_name);
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
double time_stamp() const;
|
||||
|
||||
const FlyString& type() const { return m_type; }
|
||||
void set_type(const StringView& type) { m_type = type; }
|
||||
void set_type(StringView type) { m_type = type; }
|
||||
|
||||
RefPtr<EventTarget> target() const { return m_target; }
|
||||
void set_target(EventTarget* target) { m_target = target; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue