@@ -55,17 +55,17 @@ class url_pattern_part {
5555 public:
5656 url_pattern_part (url_pattern_part_type _type, std::string&& _value,
5757 url_pattern_part_modifier _modifier)
58- : type(_type), value(_value), modifier(_modifier) {}
58+ : type(_type), value(std::move( _value) ), modifier(_modifier) {}
5959
6060 url_pattern_part (url_pattern_part_type _type, std::string&& _value,
6161 url_pattern_part_modifier _modifier, std::string&& _name,
6262 std::string&& _prefix, std::string&& _suffix)
6363 : type(_type),
64- value (_value),
64+ value (std::move( _value) ),
6565 modifier(_modifier),
66- name(_name),
67- prefix(_prefix),
68- suffix(_suffix) {}
66+ name(std::move( _name) ),
67+ prefix(std::move( _prefix) ),
68+ suffix(std::move( _suffix) ) {}
6969 // A part has an associated type, a string, which must be set upon creation.
7070 url_pattern_part_type type;
7171 // A part has an associated value, a string, which must be set upon creation.
@@ -159,7 +159,7 @@ class url_pattern_component {
159159 bool new_has_regexp_groups)
160160 : regexp(std::move(new_regexp)),
161161 pattern (std::move(new_pattern)),
162- group_name_list(new_group_name_list),
162+ group_name_list(std::move( new_group_name_list) ),
163163 has_regexp_groups(new_has_regexp_groups) {}
164164
165165 // @see https://urlpattern.spec.whatwg.org/#compile-a-component
@@ -295,7 +295,7 @@ class url_pattern {
295295
296296 template <url_pattern_regex::regex_concept P>
297297 friend tl::expected<url_pattern<P>, errors> parser::parse_url_pattern_impl (
298- std::variant<std::string_view, url_pattern_init> input,
298+ std::variant<std::string_view, url_pattern_init>&& input,
299299 const std::string_view* base_url, const url_pattern_options* options);
300300
301301 /* *
0 commit comments