mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 18:55:31 +02:00
cleanup: C++11 range-based for loop for Hash_set<>
This commit is contained in:
parent
d6add9a03d
commit
553815ea24
4 changed files with 45 additions and 20 deletions
|
|
@ -97,10 +97,8 @@ struct st_debug_sync_globals
|
|||
|
||||
void clear_set()
|
||||
{
|
||||
Hash_set<LEX_CSTRING>::Iterator it{ds_signal_set};
|
||||
LEX_CSTRING *s;
|
||||
while ((s= it++))
|
||||
my_free(s);
|
||||
for (LEX_CSTRING &s : ds_signal_set)
|
||||
my_free(&s);
|
||||
ds_signal_set.clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue