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:
parent
8c18cf4245
commit
491cdc1560
3 changed files with 5 additions and 6 deletions
|
@ -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])
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue