Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Declare functions "const" in src/xbt/.
[simgrid.git] / src / xbt / xbt_os_file.cpp
index e28fe03b8fc1fe63cc995a8e7a0623d2322ec65b..713009edb672dae8f02bd2ba6a1298ccf97a07ba 100644 (file)
@@ -33,14 +33,14 @@ simgrid::xbt::Path::Path()
 #endif
 }
 
-std::string simgrid::xbt::Path::get_dir_name()
+std::string simgrid::xbt::Path::get_dir_name() const
 {
   std::string p(path_);
   const char* res = dirname(&p[0]);
   return std::string(res, strlen(res));
 }
 
-std::string simgrid::xbt::Path::get_base_name()
+std::string simgrid::xbt::Path::get_base_name() const
 {
   std::string p(path_);
   const char* res = basename(&p[0]);