History

remove unused parameter in `AccountScriptingInterface::updateBalance`

Stojce Slavkovski committed 12 years ago

Commit 98240721 parent 8b5e3482 files · +4 −3Browse files

Showing the changes to interface/src/scripting/AccountScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/AccountScriptingInterface.cpp+3−2
@@ -15,8 +15,9 @@ · 14 unmodified lines
1515
1616 AccountScriptingInterface::AccountScriptingInterface() {
1717 AccountManager& accountManager = AccountManager::getInstance();
18− connect(&accountManager, &AccountManager::balanceChanged, this,
18+ bool succ = connect(&accountManager, &AccountManager::balanceChanged, this,
1919 &AccountScriptingInterface::updateBalance);
20+
2021 }
2122
2223 AccountScriptingInterface* AccountScriptingInterface::getInstance() {
@@ -34,7 +35,7 @@ bool AccountScriptingInterface::isLoggedIn() { · 11 unmodified lines
3435 return accountManager.isLoggedIn();
3536 }
3637
37−void AccountScriptingInterface::updateBalance(qint64 newBalance) {
38+void AccountScriptingInterface::updateBalance() {
3839 AccountManager& accountManager = AccountManager::getInstance();
3940 emit balanceChanged(accountManager.getAccountInfo().getBalanceInSatoshis());
4041 }