Skip to content

Commit 5f36956

Browse files
authored
Merge pull request #98 from nigels-com/cppcheck_merge_blocks
merge_blocks: const pos_index1, pos_index2 and pos_index3 to resolve cppcheck false alarm
2 parents 9614655 + 2d65c81 commit 5f36956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/boost/sort/block_indirect_sort/blk_detail/merge_blocks.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ struct merge_blocks
177177
//-------------------------------------------------------------------------
178178
template<uint32_t Block_size, uint32_t Group_size, class Iter_t, class Compare>
179179
merge_blocks<Block_size, Group_size, Iter_t, Compare>
180-
::merge_blocks( backbone_t &bkb, size_t pos_index1, size_t pos_index2,
181-
size_t pos_index3) : bk(bkb)
180+
::merge_blocks( backbone_t &bkb, const size_t pos_index1, const size_t pos_index2,
181+
const size_t pos_index3) : bk(bkb)
182182
{
183183
size_t nblock1 = pos_index2 - pos_index1;
184184
size_t nblock2 = pos_index3 - pos_index2;

0 commit comments

Comments
 (0)