mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-22 11:44:17 +01:00
Codechange: Remove c_str, if std::string_view is already accepted.
This commit is contained in:
@@ -718,7 +718,7 @@ NetworkGame *NetworkAddServer(std::string_view connection_string, bool manually,
|
||||
void GetBindAddresses(NetworkAddressList *addresses, uint16_t port)
|
||||
{
|
||||
for (const auto &iter : _network_bind_list) {
|
||||
addresses->emplace_back(iter.c_str(), port);
|
||||
addresses->emplace_back(iter, port);
|
||||
}
|
||||
|
||||
/* No address, so bind to everything. */
|
||||
|
||||
Reference in New Issue
Block a user