From 8b1108e4858f797c9216dc8ae4a3918ad50c73b4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 11 Nov 2021 00:55:02 +0100 Subject: Everywhere: Pass AK::StringView by value --- Userland/Libraries/LibWeb/Page/Page.cpp | 2 +- Userland/Libraries/LibWeb/Page/Page.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibWeb/Page') diff --git a/Userland/Libraries/LibWeb/Page/Page.cpp b/Userland/Libraries/LibWeb/Page/Page.cpp index aa9e1be847..3557a7c078 100644 --- a/Userland/Libraries/LibWeb/Page/Page.cpp +++ b/Userland/Libraries/LibWeb/Page/Page.cpp @@ -41,7 +41,7 @@ void Page::load(LoadRequest& request) top_level_browsing_context().loader().load(request, FrameLoader::Type::Navigation); } -void Page::load_html(const StringView& html, const AK::URL& url) +void Page::load_html(StringView html, const AK::URL& url) { top_level_browsing_context().loader().load_html(html, url); } diff --git a/Userland/Libraries/LibWeb/Page/Page.h b/Userland/Libraries/LibWeb/Page/Page.h index 4af4be19bc..4b5e007204 100644 --- a/Userland/Libraries/LibWeb/Page/Page.h +++ b/Userland/Libraries/LibWeb/Page/Page.h @@ -45,7 +45,7 @@ public: void load(const AK::URL&); void load(LoadRequest&); - void load_html(const StringView&, const AK::URL&); + void load_html(StringView, const AK::URL&); bool handle_mouseup(const Gfx::IntPoint&, unsigned button, unsigned modifiers); bool handle_mousedown(const Gfx::IntPoint&, unsigned button, unsigned modifiers); -- cgit v1.2.3