Browse Source

refactor: prefer config.bindAddress->c_str() over config.bindAddress->data() for clarity

Tim Schneider 2 years ago
parent
commit
661d30d92a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/impl/websocketserver.cpp

+ 1 - 1
src/impl/websocketserver.cpp

@@ -43,7 +43,7 @@ WebSocketServer::WebSocketServer(Configuration config_)
 	
 	
 	const char* bindAddress = nullptr;
 	const char* bindAddress = nullptr;
 	if(config.bindAddress){
 	if(config.bindAddress){
-		bindAddress = config.bindAddress->data();
+		bindAddress = config.bindAddress->c_str();
 	}
 	}
 	// Create TCP server
 	// Create TCP server
 	tcpServer = std::make_unique<TcpServer>(config.port, bindAddress);
 	tcpServer = std::make_unique<TcpServer>(config.port, bindAddress);