mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
Use boost:bind() as the docs show. Allows compilation with older gcc versions.
This commit is contained in:
parent
ce4ef37820
commit
e750ae3a79
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ void TorrentCreatorThread::run() {
|
|||
if (abort) return;
|
||||
// calculate the hash for all pieces
|
||||
const QString parent_path = fsutils::branchPath(input_path) + "/";
|
||||
set_piece_hashes(t, fsutils::toNativePath(parent_path).toUtf8().constData(), boost::bind<void>(&sendProgressUpdateSignal, _1, t.num_pieces(), this));
|
||||
set_piece_hashes(t, fsutils::toNativePath(parent_path).toUtf8().constData(), boost::bind(sendProgressUpdateSignal, _1, t.num_pieces(), this));
|
||||
// Set qBittorrent as creator and add user comment to
|
||||
// torrent_info structure
|
||||
t.set_creator(creator_str.toUtf8().constData());
|
||||
|
|
Loading…
Reference in a new issue