mirror of
https://github.com/boostorg/sort.git
synced 2026-01-19 04:42:11 +00:00
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
This commit is contained in:
@@ -177,8 +177,8 @@ struct merge_blocks
|
||||
//-------------------------------------------------------------------------
|
||||
template<uint32_t Block_size, uint32_t Group_size, class Iter_t, class Compare>
|
||||
merge_blocks<Block_size, Group_size, Iter_t, Compare>
|
||||
::merge_blocks( backbone_t &bkb, size_t pos_index1, size_t pos_index2,
|
||||
size_t pos_index3) : bk(bkb)
|
||||
::merge_blocks( backbone_t &bkb, const size_t pos_index1, const size_t pos_index2,
|
||||
const size_t pos_index3) : bk(bkb)
|
||||
{
|
||||
size_t nblock1 = pos_index2 - pos_index1;
|
||||
size_t nblock2 = pos_index3 - pos_index2;
|
||||
|
||||
Reference in New Issue
Block a user