From 0026f580a369854a22e3ab9293bee1ec22875b58 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 18 Jan 2017 10:38:36 +0100 Subject: [PATCH] wsd: clean up redundant .c_str() call Change-Id: I83e6160dec6cdbd8b621e1b783c9ea51be6b9125 --- wsd/LOOLWSD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index 01e929e62..f41cb707c 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -1568,7 +1568,7 @@ inline ServerSocket* getServerSocket(int portNumber, bool reuseDetails) try { LOG_INF("Trying first to connect to an existing loolwsd at the same port " << portNumber); - StreamSocket s(SocketAddress(("127.0.0.1:" + std::to_string(portNumber)).c_str())); + StreamSocket s(SocketAddress("127.0.0.1:" + std::to_string(portNumber))); LOG_FTL("Connection succeeded, so we can't continue"); return nullptr; }