From 618d11ec942e8d8140d3afec626585aaa9f945da Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 31 Jan 2026 23:29:50 -0600 Subject: [PATCH] warning: function 'TorrentFilter::match_mode' has a definition with different parameter names [readability-inconsistent-declaration-parameter-name] --- gtk/TorrentFilter.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/TorrentFilter.cc b/gtk/TorrentFilter.cc index 99db24039..86621515a 100644 --- a/gtk/TorrentFilter.cc +++ b/gtk/TorrentFilter.cc @@ -170,11 +170,11 @@ Glib::RefPtr TorrentFilter::create() return Glib::make_refptr_for_instance(new TorrentFilter()); } -bool TorrentFilter::match_mode(Torrent const& torrent, ShowMode const type) +bool TorrentFilter::match_mode(Torrent const& torrent, ShowMode const mode) { auto activity = tr_torrent_activity(); - switch (type) + switch (mode) { case ShowMode::ShowAll: return true;