From: Martin Quinson Date: Thu, 15 Jun 2017 00:31:21 +0000 (+0200) Subject: these static casts are useless X-Git-Tag: v3.16~94 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f6c0000d54b4220bfac8e0ff45f392d48b035e7c?hp=b9a988d21c6d27486d4acf043e43360688c1e749 these static casts are useless --- diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 0d207a81d9..2efe7b7e59 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -93,7 +93,7 @@ void SIMIX_process_cleanup(smx_actor_t process) xbt_os_mutex_acquire(simix_global->mutex); /* cancel non-blocking communications */ - smx_activity_t synchro = static_cast(process->comms.front()); + smx_activity_t synchro = process->comms.front(); while (not process->comms.empty()) { simgrid::kernel::activity::CommImplPtr comm = boost::static_pointer_cast(synchro); @@ -119,7 +119,7 @@ void SIMIX_process_cleanup(smx_actor_t process) xbt_die("Communication synchro %p is in my list but I'm not the sender nor the receiver", synchro); } process->comms.pop_front(); - synchro = static_cast(process->comms.front()); + synchro = process->comms.front(); comm->cancel(); }