mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 17:58:12 +00:00
AK: Move the path argument of URL::append_path instead of copying it
This commit is contained in:
parent
d6cfa34667
commit
30849b10d5
1 changed files with 1 additions and 1 deletions
2
AK/URL.h
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue