Replace C-style casts with C++ ones

This commit is contained in:
Eugene Shalygin
2017-05-29 14:10:31 +02:00
parent e3671050d1
commit 74cecb1b6c
20 changed files with 41 additions and 39 deletions

View File

@@ -117,9 +117,9 @@ void PowerManagementInhibitor::RequestBusy()
QList<QVariant> args;
args << "qBittorrent";
if (m_use_gsm) args << (uint)0;
if (m_use_gsm) args << 0u;
args << "Active torrents are presented";
if (m_use_gsm) args << (uint)8;
if (m_use_gsm) args << 8u;
call.setArguments(args);
QDBusPendingCall pcall = QDBusConnection::sessionBus().asyncCall(call, 1000);