diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-28 21:55:26 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-12-04 13:00:23 +0100 |
commit | 28e97e75556e50c33fb064a60725ab7937ef5440 (patch) | |
tree | c3907cb5abce0117c6f7d208b520f9f1c2be1481 /desktop-widgets/locationinformation.ui | |
parent | be26b0bd9aa6817ea6aa5c374172fc9518379b55 (diff) | |
download | subsurface-28e97e75556e50c33fb064a60725ab7937ef5440.tar.gz |
Cleanup: remove DiveListView::expandedRows member variable
The QList served as backing store for backupExpandedRows()
and restoreExpandedRows(). However, these always came in
pairs in the same scope. There is no reason to store the
expanded rows over a longer time.
Therefore, return the expanded rows from backupExpandedRows()
and take them as argument in restoreExpandedRows(). Morover
replace the QList<int> by the much lighter std::vector<int>.
We certainly don't need copy-on-write, reference-counting and
immutability of iterators in this case.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/locationinformation.ui')
0 files changed, 0 insertions, 0 deletions