summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-28 21:55:26 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-12-04 13:00:23 +0100
commit28e97e75556e50c33fb064a60725ab7937ef5440 (patch)
treec3907cb5abce0117c6f7d208b520f9f1c2be1481 /desktop-widgets/CMakeLists.txt
parentbe26b0bd9aa6817ea6aa5c374172fc9518379b55 (diff)
downloadsubsurface-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/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions