From 00898d8b975cc0795b004cd9235d6c76e3318da0 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 12 Jul 2018 16:13:10 +0200 Subject: [PATCH 1/1] A std:string is ok here. --- src/surf/surf_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1