Codechange: use std::string_view for sending chat messages

This commit is contained in:
Rubidium
2025-04-20 11:42:16 +02:00
committed by rubidium42
parent bb259b8e77
commit 26de3404a4
8 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ void NetworkDrawChatMessage()
* @param type The type of destination.
* @param dest The actual destination index.
*/
static void SendChat(const std::string &buf, DestType type, int dest)
static void SendChat(std::string_view buf, DestType type, int dest)
{
if (buf.empty()) return;
if (!_network_server) {