AK: Move the path argument of URL::append_path instead of copying it

This commit is contained in:
Idan Horowitz 2021-09-13 23:20:38 +03:00 committed by Andreas Kling
parent d6cfa34667
commit 30849b10d5
Notes: sideshowbarker 2024-07-18 03:59:24 +09:00

View File

@ -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;