X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bfa4e95e4538099a54c5afedd403264c8d99adb6..e26a153e0ece22e44a1e05fca169114d935960df:/src/surf/xml/surfxml_parseplatf.cpp diff --git a/src/surf/xml/surfxml_parseplatf.cpp b/src/surf/xml/surfxml_parseplatf.cpp index ad85acb678..739247afcf 100644 --- a/src/surf/xml/surfxml_parseplatf.cpp +++ b/src/surf/xml/surfxml_parseplatf.cpp @@ -55,12 +55,11 @@ void sg_platf_trace_connect(simgrid::kernel::routing::TraceConnectCreationArgs* default: surf_parse_error(std::string("Cannot connect trace ") + trace_connect->trace + " to " + trace_connect->element + ": unknown kind of trace"); - break; } } /* This function acts as a main in the parsing area. */ -void parse_platform_file(std::string file) +void parse_platform_file(const std::string& file) { const char* cfile = file.c_str(); int len = strlen(cfile);