From 30849b10d5eec07969c03cc97f367288e1bda65c Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Mon, 13 Sep 2021 23:20:38 +0300 Subject: [PATCH] AK: Move the path argument of URL::append_path instead of copying it --- AK/URL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/URL.h b/AK/URL.h index 33130463f2..ffcb5b5e40 100644 --- a/AK/URL.h +++ b/AK/URL.h @@ -74,7 +74,7 @@ public: void set_query(String); void set_fragment(String); void set_cannot_be_a_base_url(bool value) { m_cannot_be_a_base_url = value; } - void append_path(String path) { m_paths.append(path); } + void append_path(String path) { m_paths.append(move(path)); } String path() const; String basename() const;