mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
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:
parent
6cc388c1bc
commit
0dabc88eeb
4 changed files with 12 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue