mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Use boost:bind() as the docs show. Allows compilation with older gcc versions.
Conflicts: src/torrentcreator/torrentcreatorthread.cpp
This commit is contained in:
parent
2dede108e7
commit
b12f250642
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ void TorrentCreatorThread::run() {
|
||||||
if (abort) return;
|
if (abort) return;
|
||||||
// calculate the hash for all pieces
|
// calculate the hash for all pieces
|
||||||
const QString parent_path = fsutils::branchPath(input_path) + QDir::separator();
|
const QString parent_path = fsutils::branchPath(input_path) + QDir::separator();
|
||||||
set_piece_hashes(t, parent_path.toUtf8().constData(), boost::bind<void>(&sendProgressUpdateSignal, _1, t.num_pieces(), this));
|
set_piece_hashes(t, parent_path.toUtf8().constData(), boost::bind(sendProgressUpdateSignal, _1, t.num_pieces(), this));
|
||||||
// Set qBittorrent as creator and add user comment to
|
// Set qBittorrent as creator and add user comment to
|
||||||
// torrent_info structure
|
// torrent_info structure
|
||||||
t.set_creator(creator_str.toUtf8().constData());
|
t.set_creator(creator_str.toUtf8().constData());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue