mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 15:43:36 +03:00
AK: Move the path argument of URL::append_path instead of copying it
This commit is contained in:
parent
d6cfa34667
commit
30849b10d5
Notes:
sideshowbarker
2024-07-18 03:59:24 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/30849b10d5e Pull-request: https://github.com/SerenityOS/serenity/pull/10022
2
AK/URL.h
2
AK/URL.h
@ -74,7 +74,7 @@ public:
|
|||||||
void set_query(String);
|
void set_query(String);
|
||||||
void set_fragment(String);
|
void set_fragment(String);
|
||||||
void set_cannot_be_a_base_url(bool value) { m_cannot_be_a_base_url = value; }
|
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 path() const;
|
||||||
String basename() const;
|
String basename() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user