]> AND Public Git Repository - simgrid.git/blobdiff - examples/s4u/app-chainsend/s4u-app-chainsend.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Constify pointer and reference local variables in examples/.
[simgrid.git] / examples / s4u / app-chainsend / s4u-app-chainsend.cpp
index dc1abf59f9107e6a3a5a0a0ffedad871b73f408a..ffaff0a16f085849767f0b0f907f3e612682bebf 100644 (file)
@@ -47,7 +47,7 @@ public:
 
   void joinChain()
   {
-    ChainMessage* msg = static_cast<ChainMessage*>(me->get());
+    const ChainMessage* msg = static_cast<ChainMessage*>(me->get());
     prev              = msg->prev_;
     next              = msg->next_;
     total_pieces      = msg->num_pieces;