mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
uemis: unglobalize next_table_index
This is only initialized and used in one loop. Very mysterious why this should be a global variable. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ad33d498c7
commit
5554acb2c5
1 changed files with 1 additions and 3 deletions
|
@ -82,7 +82,6 @@ static int filenr;
|
|||
static int number_of_files;
|
||||
|
||||
static int max_mem_used = -1;
|
||||
static int next_table_index = 0;
|
||||
static int dive_to_read = 0;
|
||||
static uint32_t mindiveid;
|
||||
|
||||
|
@ -1476,8 +1475,7 @@ std::string do_uemis_import(device_data_t *data)
|
|||
|
||||
/* Regardless on where we are with the memory situation, it's time now
|
||||
* to see if we have to clean some dead bodies from our download table */
|
||||
next_table_index = 0;
|
||||
while (next_table_index < data->log->dives->nr) {
|
||||
for (int next_table_index = 0; next_table_index < data->log->dives->nr; ) {
|
||||
if (data->log->dives->dives[next_table_index]->hidden_by_filter)
|
||||
uemis_delete_dive(data, data->log->dives->dives[next_table_index]->dc.diveid);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue