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:
Charles Kerr
2023-11-04 11:39:41 -05:00
committed by GitHub
parent 4d95aa5298
commit a952a0731f
75 changed files with 1162 additions and 1254 deletions

View File

@@ -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);
}