- replaced swapptr with std::swap.

This commit is contained in:
Christoph Oelckers 2020-09-10 16:36:31 +02:00
parent e5cf57917e
commit b2105f28e1
5 changed files with 27 additions and 50 deletions

View file

@ -917,8 +917,8 @@ static int32_t partition(uint16_t *indexes, float *depths, int32_t f, int32_t l)
down--;
if (up < down)
{
swapfloat(&depths[up], &depths[down]);
swapshort(&indexes[up], &indexes[down]);
std::swap(depths[up], depths[down]);
std::swap(indexes[up], indexes[down]);
}
}
while (down > up);