Cleanup: Remove MultiFilterSortModel::model

The source-model was cached in MultiFilterSortModel. For simplicity,
remove that and simply access via DiveTripModel::instance(). There
is only one instance where the cached model was used: when comparing
items for sorting. Thus, in indirection is added in a "hot" path.
Nevertheless, this will dwarf against the cost of string comparison.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-12-24 10:14:37 +01:00 committed by Dirk Hohndel
parent 4d06ddd723
commit b5704ddb57
2 changed files with 3 additions and 5 deletions

View file

@ -58,7 +58,6 @@ signals:
private:
MultiFilterSortModel(QObject *parent = 0);
struct dive_site *curr_dive_site;
DiveTripModel *model;
FilterData filterData;
};