aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoingui.cpp
diff options
context:
space:
mode:
authorJohn-Gee <[email protected]>2020-12-22 06:25:23 -0800
committerJohn-Gee <[email protected]>2021-02-02 03:54:57 -0800
commit41406bfa1747a9c1038355a3ed4c5e455591afe8 (patch)
tree67f6160f7cfa6232b5cc85269842f491c195a7c1 /src/qt/bitcoingui.cpp
parentMerge pull request #1669 from carsenk/master (diff)
downloaddiscoin-41406bfa1747a9c1038355a3ed4c5e455591afe8.tar.xz
discoin-41406bfa1747a9c1038355a3ed4c5e455591afe8.zip
Fix for Boost 1.74
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r--src/qt/bitcoingui.cpp22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index 4ffde76cf..71c1fd355 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -75,6 +75,8 @@ const std::string BitcoinGUI::DEFAULT_UIPLATFORM =
#endif
;
+#include <boost/bind/bind.hpp>
+
/** Display name for default wallet name. Uses tilde to avoid name
* collisions in the future with additional wallets */
const QString BitcoinGUI::DEFAULT_WALLET = "~Default";
@@ -1196,15 +1198,27 @@ static bool ThreadSafeMessageBox(BitcoinGUI *gui, const std::string& message, co
void BitcoinGUI::subscribeToCoreSignals()
{
// Connect signals to client
- uiInterface.ThreadSafeMessageBox.connect(boost::bind(ThreadSafeMessageBox, this, _1, _2, _3));
- uiInterface.ThreadSafeQuestion.connect(boost::bind(ThreadSafeMessageBox, this, _1, _3, _4));
+ uiInterface.ThreadSafeMessageBox.connect(boost::bind(ThreadSafeMessageBox, this,
+ boost::placeholders::_1,
+ boost::placeholders::_2,
+ boost::placeholders::_3));
+ uiInterface.ThreadSafeQuestion.connect(boost::bind(ThreadSafeMessageBox, this,
+ boost::placeholders::_1,
+ boost::placeholders::_3,
+ boost::placeholders::_4));
}
void BitcoinGUI::unsubscribeFromCoreSignals()
{
// Disconnect signals from client
- uiInterface.ThreadSafeMessageBox.disconnect(boost::bind(ThreadSafeMessageBox, this, _1, _2, _3));
- uiInterface.ThreadSafeQuestion.disconnect(boost::bind(ThreadSafeMessageBox, this, _1, _3, _4));
+ uiInterface.ThreadSafeMessageBox.disconnect(boost::bind(ThreadSafeMessageBox, this,
+ boost::placeholders::_1,
+ boost::placeholders::_2,
+ boost::placeholders::_3));
+ uiInterface.ThreadSafeQuestion.disconnect(boost::bind(ThreadSafeMessageBox, this,
+ boost::placeholders::_1,
+ boost::placeholders::_3,
+ boost::placeholders::_4));
}
void BitcoinGUI::toggleNetworkActive()