mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
4d06ddd723
commit
b5704ddb57
2 changed files with 3 additions and 5 deletions
|
|
@ -58,7 +58,6 @@ signals:
|
|||
private:
|
||||
MultiFilterSortModel(QObject *parent = 0);
|
||||
struct dive_site *curr_dive_site;
|
||||
DiveTripModel *model;
|
||||
FilterData filterData;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue