fix: clang-tidy misc-const-correctness warnings (#3529)

This commit is contained in:
Charles Kerr
2022-07-27 09:03:13 -05:00
committed by GitHub
parent 78b24b594b
commit ec79a2a888
42 changed files with 89 additions and 85 deletions

View File

@@ -307,7 +307,7 @@ static char const* torrentRemove(
auto delete_flag = bool{ false };
(void)tr_variantDictFindBool(args_in, TR_KEY_delete_local_data, &delete_flag);
tr_rpc_callback_type type = delete_flag ? TR_RPC_TORRENT_TRASHING : TR_RPC_TORRENT_REMOVING;
tr_rpc_callback_type const type = delete_flag ? TR_RPC_TORRENT_TRASHING : TR_RPC_TORRENT_REMOVING;
for (auto* tor : getTorrents(session, args_in))
{