Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pointer-to-const for sonar.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 24 Oct 2020 08:38:56 +0000 (10:38 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 24 Oct 2020 09:02:58 +0000 (11:02 +0200)
src/kernel/resource/profile/Profile_test.cpp

index 0d2d72b..55f4c61 100644 (file)
@@ -67,7 +67,7 @@ static std::vector<simgrid::kernel::profile::DatedValue> trace2vector(const char
 
 static std::vector<simgrid::kernel::profile::StochasticDatedValue> trace2selist(const char* str)
 {
-  simgrid::kernel::profile::Profile* trace = simgrid::kernel::profile::Profile::from_string("TheName", str, 0);
+  const simgrid::kernel::profile::Profile* trace = simgrid::kernel::profile::Profile::from_string("TheName", str, 0);
   std::vector<simgrid::kernel::profile::StochasticDatedValue> stocevlist = trace->stochastic_event_list;
   tmgr_finalize();
   return stocevlist;