Skip to content

Commit 9b61c19

Browse files
committed
Add comment: cppcheck-suppress constVariablePointer
1 parent 58f85bb commit 9b61c19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mechanism/Container/FixedVector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ class FixedVector {
389389
}
390390

391391
const size_type num_elems_pos_to_end = end() - pos;
392-
iterator old_end = end();
392+
iterator old_end = end(); // cppcheck-suppress constVariablePointer
393393
if (num_elems_pos_to_end > n) {
394394
for (size_type i = 0U; i < n; ++i) {
395395
construct(&*end());

mechanism/Container/PreallocatedVector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ class PreallocatedVector {
404404
}
405405

406406
const size_type num_elems_pos_to_end = end() - pos;
407-
iterator old_end = end();
407+
iterator old_end = end(); // cppcheck-suppress constVariablePointer
408408
if (num_elems_pos_to_end > n) {
409409
for (size_type i = 0U; i < n; ++i) {
410410
construct(&*end());

0 commit comments

Comments
 (0)