X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/11ae3bfac7b4c85a23e220b9d0755449a622a37b..afd3a47e007a0f91d206cc2e47b69b4b86970fc2:/src/s4u/s4u_file.cpp diff --git a/src/s4u/s4u_file.cpp b/src/s4u/s4u_file.cpp index 7512efb3a7..e6fe865dc0 100644 --- a/src/s4u/s4u_file.cpp +++ b/src/s4u/s4u_file.cpp @@ -20,10 +20,10 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_file,"S4U files"); namespace simgrid { namespace s4u { -File::File(const char*fullpath, void *userdata) { +File::File(const char* fullpath, void* userdata) : path_(fullpath) +{ // this cannot fail because we get a xbt_die if the mountpoint does not exist pimpl_ = simcall_file_open(fullpath, Host::current()); - path_ = fullpath; } File::~File() {