1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-25 05:04:07 +01:00

Codechange: use std::string_view for connection strings

This commit is contained in:
Rubidium
2025-04-20 12:17:45 +02:00
committed by rubidium42
parent 31433882a4
commit c13956a58a
17 changed files with 39 additions and 39 deletions

View File

@@ -718,7 +718,7 @@ public:
* Initiate the connecting.
* @param address The address of the server.
*/
NetworkContentConnecter(const std::string &connection_string) : TCPConnecter(connection_string, NETWORK_CONTENT_SERVER_PORT) {}
NetworkContentConnecter(std::string_view connection_string) : TCPConnecter(connection_string, NETWORK_CONTENT_SERVER_PORT) {}
void OnFailure() override
{