From e750ae3a799fd332de25d63a22f3a30ee6c01b68 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Tue, 21 Oct 2014 16:28:06 +0300 Subject: [PATCH] Use boost:bind() as the docs show. Allows compilation with older gcc versions. --- src/torrentcreator/torrentcreatorthread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrentcreator/torrentcreatorthread.cpp b/src/torrentcreator/torrentcreatorthread.cpp index eb11a3cc8..a87b19fc6 100644 --- a/src/torrentcreator/torrentcreatorthread.cpp +++ b/src/torrentcreator/torrentcreatorthread.cpp @@ -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(&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());