libi22pd: convert several loops to range based ones

Found with clang-tidy's modernize-loop-convert.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-01-19 18:50:20 -08:00
parent 6cc388c1bc
commit 0dabc88eeb
No known key found for this signature in database
GPG key ID: 36D31CFA845F0E3B
4 changed files with 12 additions and 12 deletions

View file

@ -188,10 +188,10 @@ namespace crypto
static void DestroyElggTable (BIGNUM * table[][255], int len)
{
for (int i = 0; i < len; i++)
for (int j = 0; j < 255; j++)
for (auto & j : table[i])
{
BN_free (table[i][j]);
table[i][j] = nullptr;
BN_free (j);
j = nullptr;
}
BN_MONT_CTX_free (g_MontCtx);
}