sources/network/udpsocket.cpp

changeset 182
20ca0a6be175
parent 180
2e7225dbd9b2
child 183
9b6a0daedfc0
--- a/sources/network/udpsocket.cpp	Wed Jan 27 13:17:11 2021 +0200
+++ b/sources/network/udpsocket.cpp	Wed Jan 27 14:04:53 2021 +0200
@@ -105,7 +105,7 @@
 
 	if (::bind (m_socket, reinterpret_cast<sockaddr*> (&svaddr), sizeof svaddr) == -1)
 	{
-		m_error = String ("Couldn't bind to port ") + String::fromNumber (port);
+		m_error = "Couldn't bind to port "s + std::to_string(port);
 		return false;
 	}
 

mercurial