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/xbt/.
[simgrid.git]
/
src
/
xbt
/
dynar_test.cpp
diff --git
a/src/xbt/dynar_test.cpp
b/src/xbt/dynar_test.cpp
index d549738fdeb75df4f8dbfbc34e43704a56dc953d..ebab878262868b1a10c649070c55562386b1d60d 100644
(file)
--- a/
src/xbt/dynar_test.cpp
+++ b/
src/xbt/dynar_test.cpp
@@
-40,7
+40,7
@@
TEST_CASE("xbt::dynar: generic C vector", "dynar")
/* 2. Traverse manually the dynar */
for (int i = 0; i < NB_ELEM; i++) {
/* 2. Traverse manually the dynar */
for (int i = 0; i < NB_ELEM; i++) {
- int* iptr = (int*)xbt_dynar_get_ptr(d, i);
+
const
int* iptr = (int*)xbt_dynar_get_ptr(d, i);
REQUIRE(i == *iptr); // The retrieved value is not the same than the injected one
}
REQUIRE(i == *iptr); // The retrieved value is not the same than the injected one
}