From aa5187ab36c6b43f55fb309c7521a3c454d2a58e Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 29 Aug 2017 21:50:44 +0200 Subject: [PATCH] A std::string is ok here. --- src/surf/sg_platf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 219c19331e..f8d7e4d95b 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -274,7 +274,7 @@ void sg_platf_new_cluster(ClusterCreationArgs* cluster) XBT_DEBUG("", cluster->router_id.c_str()); if (cluster->router_id.empty()) { std::string newid = std::string(cluster->prefix) + cluster->id + "_router" + cluster->suffix; - current_as->router_ = sg_platf_new_router(newid.c_str(), NULL); + current_as->router_ = sg_platf_new_router(newid, NULL); } else { current_as->router_ = sg_platf_new_router(cluster->router_id, NULL); } -- 2.20.1