X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b87fc0829538ec066fd077e6c30ee6270b8abd78..b98b530ed10d60d9c350bf4919896a0c50b649f3:/src/s4u/s4u_file.cpp diff --git a/src/s4u/s4u_file.cpp b/src/s4u/s4u_file.cpp index 35f59e74d7..14c73e03db 100644 --- a/src/s4u/s4u_file.cpp +++ b/src/s4u/s4u_file.cpp @@ -27,7 +27,7 @@ File::File(std::string fullpath, sg_host_t host, void* userdata) : path_(fullpat std::string path; XBT_DEBUG("Search for storage name for '%s' on '%s'", fullpath.c_str(), host->getCname()); - for (auto mnt : host->getMountedStorages()) { + for (auto const& mnt : host->getMountedStorages()) { XBT_DEBUG("See '%s'", mnt.first.c_str()); mount_point = fullpath.substr(0, mnt.first.length());