mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-21 07:15:27 +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
b5a76667c6
commit
f4d2159694
1 changed files with 1 additions and 3 deletions
|
@ -82,7 +82,6 @@ static int filenr;
|
||||||
static int number_of_files;
|
static int number_of_files;
|
||||||
|
|
||||||
static int max_mem_used = -1;
|
static int max_mem_used = -1;
|
||||||
static int next_table_index = 0;
|
|
||||||
static int dive_to_read = 0;
|
static int dive_to_read = 0;
|
||||||
static uint32_t mindiveid;
|
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
|
/* 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 */
|
* to see if we have to clean some dead bodies from our download table */
|
||||||
next_table_index = 0;
|
for (int next_table_index = 0; next_table_index < data->log->dives->nr; ) {
|
||||||
while (next_table_index < data->log->dives->nr) {
|
|
||||||
if (data->log->dives->dives[next_table_index]->hidden_by_filter)
|
if (data->log->dives->dives[next_table_index]->hidden_by_filter)
|
||||||
uemis_delete_dive(data, data->log->dives->dives[next_table_index]->dc.diveid);
|
uemis_delete_dive(data, data->log->dives->dives[next_table_index]->dc.diveid);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue