From 418b160731aeb917a4e4a1cf078363f5dac63f8e Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 15 Apr 2020 22:36:41 +0200 Subject: media: remove unused local variable TabDivePhotos::saveSubtitles() had an unused local variable. Clearly a copy&paste oversight. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/TabDivePhotos.cpp | 3 --- 1 file changed, 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 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); } - } } } -- cgit v1.2.3-70-g09d2