From: Arnaud Giersch Date: Thu, 12 Jul 2018 14:13:10 +0000 (+0200) Subject: A std:string is ok here. X-Git-Tag: v3_21~476 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/00898d8b975cc0795b004cd9235d6c76e3318da0?hp=0af93c136e7e7af7e1ecd573fb7c7a2f87b698ef A std:string is ok here. --- diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 40a5736ea0..30481fa6ee 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -148,7 +148,7 @@ std::ifstream* surf_ifsopen(std::string name) xbt_assert(not name.empty()); std::ifstream* fs = new std::ifstream(); - if (is_absolute_file_path(name.c_str())) { /* don't mess with absolute file names */ + if (is_absolute_file_path(name)) { /* don't mess with absolute file names */ fs->open(name.c_str(), std::ifstream::in); }