mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move invalidate_dive_cache() to struct dive
Seems natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1b593dc56c
commit
72bb38601d
11 changed files with 42 additions and 44 deletions
|
@ -2311,9 +2311,9 @@ void QMLManager::rememberOldStatus()
|
|||
void QMLManager::divesChanged(const QVector<dive *> &dives, DiveField)
|
||||
{
|
||||
for (struct dive *d: dives) {
|
||||
report_info("dive #%d changed, cache is %s", d->number, dive_cache_is_valid(d) ? "valid" : "invalidated");
|
||||
report_info("dive #%d changed, cache is %s", d->number, d->cache_is_valid() ? "valid" : "invalidated");
|
||||
// a brute force way to deal with that would of course be to call
|
||||
// invalidate_dive_cache(d);
|
||||
// d->invalidate_cache();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue