Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Constify pointer and reference local variables in teshsuite/.
[simgrid.git] / teshsuite / s4u / comm-pt2pt / comm-pt2pt.cpp
index 07838b5..e201a0e 100644 (file)
@@ -143,7 +143,7 @@ static void receiver(std::vector<std::string> args)
       default:
         xbt_die("Unknown receiver spec for test %u: '%c'", test, args[0][test - 1]);
     }
-    std::string* receivedStr = static_cast<std::string*>(received);
+    const std::string* receivedStr = static_cast<std::string*>(received);
     xbt_assert(*receivedStr == mboxName);
     delete receivedStr;
     XBT_INFO("Test %u OK", test);