Use static_cast for explicit type conversions

This commit is contained in:
sledgehammer999
2020-04-18 15:51:38 +03:00
parent d69ce4f1cf
commit a17b1f2b78
4 changed files with 11 additions and 11 deletions

View File

@@ -164,7 +164,7 @@ void TorrentCreatorThread::run()
lt::set_piece_hashes(newTorrent, Utils::Fs::toNativePath(parentPath).toStdString()
, [this, &newTorrent](const LTPieceIndex n)
{
sendProgressSignal(LTUnderlyingType<LTPieceIndex> {n}, newTorrent.num_pieces());
sendProgressSignal(static_cast<LTUnderlyingType<LTPieceIndex>>(n), newTorrent.num_pieces());
});
// Set qBittorrent as creator and add user comment to
// torrent_info structure