diff --git a/src/accumulators.cpp b/src/accumulators.cpp index 0dcc18db6677b..44bc318726542 100644 --- a/src/accumulators.cpp +++ b/src/accumulators.cpp @@ -19,7 +19,7 @@ std::list listAccCheckpointsNoDB; uint32_t ParseChecksum(uint256 nChecksum, CoinDenomination denomination) { //shift to the beginning bit of this denomination and trim any remaining bits by returning 32 bits only - int pos = distance(zerocoinDenomList.begin(), find(zerocoinDenomList.begin(), zerocoinDenomList.end(), denomination)); + int pos = boost::distance(zerocoinDenomList.begin(), find(zerocoinDenomList.begin(), zerocoinDenomList.end(), denomination)); nChecksum = nChecksum >> (32*((zerocoinDenomList.size() - 1) - pos)); return nChecksum.Get32(); } @@ -521,4 +521,4 @@ map GetMintMaturityHeight() mapRet.insert(make_pair(denom, mapDenomMaturity.at(denom).second)); return mapRet; -} \ No newline at end of file +} diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp index cd4f9bdbb8358..1eb61464a0745 100644 --- a/src/qt/walletframe.cpp +++ b/src/qt/walletframe.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2013 The Bitcoin developers + // Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -41,7 +41,7 @@ bool WalletFrame::addWallet(const QString& name, WalletModel* walletModel) if (!gui || !clientModel || !walletModel || mapWalletViews.count(name) > 0) return false; - WalletView* walletView = new WalletView(this); + WalletView* walletView = new WalletView(walletStack); walletView->setBitcoinGUI(gui); walletView->setClientModel(clientModel); walletView->setWalletModel(walletModel);