mirror of
https://github.com/transmission/transmission.git
synced 2025-12-19 18:08:31 +00:00
refactor: remove the tr_error** idiom (#6198)
* refactor: remove the tr_error** idiom * fix: tr_error::message() is only constexpr in c++20 and up * chore: silence a couple of g++-12 Wshadow warnings
This commit is contained in:
@@ -911,7 +911,7 @@ void Session::remove_torrent(tr_torrent_id_t id, bool delete_files)
|
||||
tr_torrentRemove(
|
||||
&torrent->get_underlying(),
|
||||
delete_files,
|
||||
[](char const* filename, void* /*user_data*/, tr_error** error)
|
||||
[](char const* filename, void* /*user_data*/, tr_error* error)
|
||||
{ return gtr_file_trash_or_remove(filename, error); },
|
||||
nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user