diff options
| author | untodesu <kirill@untode.su> | 2025-09-11 13:48:31 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-09-11 13:48:31 +0500 |
| commit | aaed751bf4430bf4b9b30cef532b8753b9f639ce (patch) | |
| tree | 16bc751c272ba27ad53ec48dbdd3a6d9e6a8d4c2 /game/client/gui/bother.cc | |
| parent | 96bd73ae020ecca1f94698744c77498a89ad19f7 (diff) | |
| download | voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.tar.bz2 voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.zip | |
Replace most of C strings with string_view
Diffstat (limited to 'game/client/gui/bother.cc')
| -rw-r--r-- | game/client/gui/bother.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/client/gui/bother.cc b/game/client/gui/bother.cc index 3a35438..d87f220 100644 --- a/game/client/gui/bother.cc +++ b/game/client/gui/bother.cc @@ -117,7 +117,7 @@ void gui::bother::update_late(void) } } -void gui::bother::ping(unsigned int identity, const char* host, std::uint16_t port) +void gui::bother::ping(unsigned int identity, std::string_view host, std::uint16_t port) { if(bother_set.count(identity)) { // Already in the process @@ -133,7 +133,7 @@ void gui::bother::ping(unsigned int identity, const char* host, std::uint16_t po BotherQueueItem item; item.identity = identity; - item.hostname = std::string(host); + item.hostname = host; item.port = port; bother_queue.push_back(item); |
