mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 13:41:17 +00:00
fix: gcc 13 warnings, pt. 1 (#6400)
* fix: nullptr dereference warnings
* fix: mixed enumerated and non-enumerated warning
* fix: -Wnull-dereference warning in qt/MainWindow.cc
* fix: -Wnull-dereference warning in TorrentFilter::countTorrentsPerMode()
* fix: -Wnull-dereference warning in VariantHelpers::change(TrackerStat&, tr_variant*)
* build: bump google-test from 1.12.1 to 1.14.0
* Revert "build: bump google-test from 1.12.1 to 1.14.0"
This reverts commit 6fdcffa5de.
This commit is contained in:
@@ -891,7 +891,11 @@ void MainWindow::refreshActionSensitivity()
|
||||
auto const now = time(nullptr);
|
||||
for (auto const& row : selection_model->selectedRows())
|
||||
{
|
||||
auto const& tor = model->data(row, TorrentModel::TorrentRole).value<Torrent const*>();
|
||||
auto const* const tor = model->data(row, TorrentModel::TorrentRole).value<Torrent const*>();
|
||||
if (tor == nullptr)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
++selected;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user