mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
Avoid implicit narrowing casts in Session (GTK clent)
This commit is contained in:
@@ -1739,8 +1739,7 @@ void Session::port_test()
|
|||||||
|
|
||||||
void Session::blocklist_update()
|
void Session::blocklist_update()
|
||||||
{
|
{
|
||||||
int const tag = nextTag;
|
auto const tag = nextTag++;
|
||||||
++nextTag;
|
|
||||||
|
|
||||||
tr_variant request;
|
tr_variant request;
|
||||||
tr_variantInitDict(&request, 2);
|
tr_variantInitDict(&request, 2);
|
||||||
@@ -1776,8 +1775,7 @@ void Session::blocklist_update()
|
|||||||
|
|
||||||
void Session::exec(tr_variant const* top)
|
void Session::exec(tr_variant const* top)
|
||||||
{
|
{
|
||||||
int const tag = nextTag;
|
auto const tag = nextTag++;
|
||||||
++nextTag;
|
|
||||||
|
|
||||||
impl_->send_rpc_request(top, tag, {});
|
impl_->send_rpc_request(top, tag, {});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user