]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/sosp/Snapshot.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Declare functions "const" (round #2).
[simgrid.git] / src / mc / sosp / Snapshot.cpp
index 6646082f44c9d8bb2e65709af8d998ea0dbd2b47..ccc1ac97283cb76d74ce9119a4eb3ea3c2e5b669 100644 (file)
@@ -104,7 +104,7 @@ static std::vector<s_mc_stack_frame_t> unwind_stack_frames(UnwindContext* stack_
 
   // TODO, check condition check (unw_init_local==0 means end of frame)
 
-  while (1) {
+  while (true) {
     s_mc_stack_frame_t stack_frame;
 
     stack_frame.unw_cursor = c;
@@ -273,7 +273,7 @@ Region* Snapshot::get_region(const void* addr, Region* hinted_region) const
     return get_region(addr);
 }
 
-void Snapshot::restore(RemoteSimulation* process)
+void Snapshot::restore(RemoteSimulation* process) const
 {
   XBT_DEBUG("Restore snapshot %i", num_state_);