X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7177327de6a1fed71b87aad08702213c7db81ac1..656d1d84782545d13a71b9dbf956ef2c69ec3af6:/include/xbt/file.hpp diff --git a/include/xbt/file.hpp b/include/xbt/file.hpp index 91c285b99b..4ef6c04df3 100644 --- a/include/xbt/file.hpp +++ b/include/xbt/file.hpp @@ -22,7 +22,7 @@ public: explicit Path(std::string path): path_(std::move(path)) {} /** @brief Returns the full path name */ - std::string get_name() { return path_; } + const std::string& get_name() const { return path_; } /** @brief Returns the directory component of a path (reimplementation of POSIX dirname) */ std::string get_dir_name(); /** @brief Returns the file component of a path (reimplementation of POSIX basename) */