diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-04 19:31:12 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-06 20:33:26 +0200 |
commit | 6c4a65eeb80431ce35e91affee865419e7d7af34 (patch) | |
tree | e8e8026fe44cc5cb986616ebe8ae3d79d7719395 /src/network/core/udp.cpp | |
parent | dcef3209a61acf818f3114d07e3378bc7e61a9c1 (diff) | |
download | openttd-6c4a65eeb80431ce35e91affee865419e7d7af34.tar.xz |
Codechange: [Network] Use std::string for NetworkAddress' host name
Diffstat (limited to 'src/network/core/udp.cpp')
-rw-r--r-- | src/network/core/udp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp index e7b99a53e..c4d448f26 100644 --- a/src/network/core/udp.cpp +++ b/src/network/core/udp.cpp @@ -28,11 +28,11 @@ NetworkUDPSocketHandler::NetworkUDPSocketHandler(NetworkAddressList *bind) this->bind.push_back(addr); } } else { - /* As hostname nullptr and port 0/nullptr don't go well when + /* As an empty hostname and port 0 don't go well when * resolving it we need to add an address for each of * the address families we support. */ - this->bind.emplace_back(nullptr, 0, AF_INET); - this->bind.emplace_back(nullptr, 0, AF_INET6); + this->bind.emplace_back("", 0, AF_INET); + this->bind.emplace_back("", 0, AF_INET6); } } |