A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[sonar] Constify pointer and reference local variables in src/mc/.
[simgrid.git]
/
src
/
mc
/
mc_smx.cpp
diff --git
a/src/mc/mc_smx.cpp
b/src/mc/mc_smx.cpp
index
e57e6bd
..
e6ffc00
100644
(file)
--- a/
src/mc/mc_smx.cpp
+++ b/
src/mc/mc_smx.cpp
@@
-119,7
+119,7
@@
const char* MC_smx_actor_get_host_name(smx_actor_t actor)
if (mc_model_checker == nullptr)
return actor->get_host()->get_cname();
if (mc_model_checker == nullptr)
return actor->get_host()->get_cname();
- simgrid::mc::RemoteClient* process = &mc_model_checker->process();
+
const
simgrid::mc::RemoteClient* process = &mc_model_checker->process();
// Read the simgrid::xbt::string in the MCed process:
simgrid::mc::ActorInformation* info = actor_info_cast(actor);
// Read the simgrid::xbt::string in the MCed process:
simgrid::mc::ActorInformation* info = actor_info_cast(actor);
@@
-134,7
+134,7
@@
const char* MC_smx_actor_get_host_name(smx_actor_t actor)
const char* MC_smx_actor_get_name(smx_actor_t actor)
{
const char* MC_smx_actor_get_name(smx_actor_t actor)
{
- simgrid::mc::RemoteClient* process = &mc_model_checker->process();
+
const
simgrid::mc::RemoteClient* process = &mc_model_checker->process();
if (mc_model_checker == nullptr)
return actor->get_cname();
if (mc_model_checker == nullptr)
return actor->get_cname();