@@ -733,42 +733,42 @@ result<std::optional<url_pattern_result>> url_pattern<regex_provider>::match(
733733 // Set result["protocol"] to the result of creating a component match result
734734 // given urlPattern’s protocol component, protocol, and protocolExecResult.
735735 result.protocol = protocol_component.create_component_match_result (
736- protocol, *protocol_exec_result);
736+ protocol, std::move ( *protocol_exec_result) );
737737
738738 // Set result["username"] to the result of creating a component match result
739739 // given urlPattern’s username component, username, and usernameExecResult.
740740 result.username = username_component.create_component_match_result (
741- username, *username_exec_result);
741+ username, std::move ( *username_exec_result) );
742742
743743 // Set result["password"] to the result of creating a component match result
744744 // given urlPattern’s password component, password, and passwordExecResult.
745745 result.password = password_component.create_component_match_result (
746- password, *password_exec_result);
746+ password, std::move ( *password_exec_result) );
747747
748748 // Set result["hostname"] to the result of creating a component match result
749749 // given urlPattern’s hostname component, hostname, and hostnameExecResult.
750750 result.hostname = hostname_component.create_component_match_result (
751- hostname, *hostname_exec_result);
751+ hostname, std::move ( *hostname_exec_result) );
752752
753753 // Set result["port"] to the result of creating a component match result given
754754 // urlPattern’s port component, port, and portExecResult.
755- result.port =
756- port_component. create_component_match_result ( port, *port_exec_result);
755+ result.port = port_component. create_component_match_result (
756+ port, std::move ( *port_exec_result) );
757757
758758 // Set result["pathname"] to the result of creating a component match result
759759 // given urlPattern’s pathname component, pathname, and pathnameExecResult.
760760 result.pathname = pathname_component.create_component_match_result (
761- pathname, *pathname_exec_result);
761+ pathname, std::move ( *pathname_exec_result) );
762762
763763 // Set result["search"] to the result of creating a component match result
764764 // given urlPattern’s search component, search, and searchExecResult.
765765 result.search = search_component.create_component_match_result (
766- search, *search_exec_result);
766+ search, std::move ( *search_exec_result) );
767767
768768 // Set result["hash"] to the result of creating a component match result given
769769 // urlPattern’s hash component, hash, and hashExecResult.
770- result.hash =
771- hash_component. create_component_match_result ( hash, *hash_exec_result);
770+ result.hash = hash_component. create_component_match_result (
771+ hash, std::move ( *hash_exec_result) );
772772
773773 return result;
774774}
0 commit comments