Filter: move number of shown dives to core

We mark hidden/shown dives in the core but store the number
of shown dives in the MultiFilterSortModel. Move this datum
to the core for improved locality.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-11-17 16:23:00 +01:00 committed by Dirk Hohndel
parent cbd98edb73
commit 2d09819ddf
5 changed files with 10 additions and 10 deletions

View file

@ -899,6 +899,7 @@ void deselect_dive(struct dive *dive)
}
}
int shown_dives = 0;
void filter_dive(struct dive *d, bool shown)
{
if (!d)

View file

@ -9,6 +9,7 @@ extern "C" {
#endif
struct deco_state;
extern int shown_dives;
/* this is used for both git and xml format */
#define DATAFORMAT_VERSION 3