1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-12 23:23:54 +00:00

refactor: remove TR_ARG_TUPLE macro (#7468)

This commit is contained in:
Charles Kerr 2025-03-04 19:06:12 -06:00 committed by GitHub
parent 8c18cf4245
commit 491cdc1560
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 6 deletions

View file

@ -450,7 +450,7 @@ int tr_main(int argc, char* argv[])
}
auto const status_str = getStatusStr(st);
printf("\r%-*s", TR_ARG_TUPLE(LineWidth, status_str.c_str()));
printf("\r%-*s", LineWidth, status_str.c_str());
if (messageName[st->error])
{

View file

@ -70,9 +70,6 @@
#define TR_ADDRSTRLEN 64
// Mostly to enforce better formatting
#define TR_ARG_TUPLE(...) __VA_ARGS__
// https://www.bittorrent.org/beps/bep_0007.html
// "The client SHOULD include a key parameter in its announces. The key
// should remain the same for a particular infohash during a torrent

View file

@ -49,8 +49,10 @@ void ensureSoundCommandIsAList(tr_variant* dict)
key,
std::array<std::string_view, 5>{
"canberra-gtk-play",
TR_ARG_TUPLE("-i", "complete-download"),
TR_ARG_TUPLE("-d", "transmission torrent downloaded"),
"-i",
"complete-download",
"-d",
"transmission torrent downloaded",
});
}