diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-15 22:36:41 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-06 13:58:09 -0700 |
commit | 418b160731aeb917a4e4a1cf078363f5dac63f8e (patch) | |
tree | 4b1a36c8b7ad362eaf826b4509453a55a6f1b446 | |
parent | 91e81879a5a28145a2b79d8c9172e1ea3c3580bc (diff) | |
download | subsurface-418b160731aeb917a4e4a1cf078363f5dac63f8e.tar.gz |
media: remove unused local variable
TabDivePhotos::saveSubtitles() had an unused local variable.
Clearly a copy&paste oversight.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | desktop-widgets/tab-widgets/TabDivePhotos.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/desktop-widgets/tab-widgets/TabDivePhotos.cpp b/desktop-widgets/tab-widgets/TabDivePhotos.cpp index dab5d2c67..731e58388 100644 --- a/desktop-widgets/tab-widgets/TabDivePhotos.cpp +++ b/desktop-widgets/tab-widgets/TabDivePhotos.cpp @@ -110,11 +110,9 @@ void TabDivePhotos::recalculateSelectedThumbnails() void TabDivePhotos::saveSubtitles() { - QVector<QString> selectedPhotos; if (!ui->photosView->selectionModel()->hasSelection()) return; QModelIndexList indices = ui->photosView->selectionModel()->selectedRows(); - selectedPhotos.reserve(indices.count()); for (const auto &photo: indices) { if (photo.isValid()) { QString fileUrl = photo.data(Qt::DisplayPropertyRole).toString(); @@ -135,7 +133,6 @@ void TabDivePhotos::saveSubtitles() subtitlefile.close(); free(data); } - } } } |