diff options
| author | Karl-Johan Alm <[email protected]> | 2016-12-05 16:03:53 +0900 |
|---|---|---|
| committer | Kalle Alm <[email protected]> | 2017-01-02 20:35:23 +0900 |
| commit | 73f41190b91dce9c125b1828b18f7625e0200145 (patch) | |
| tree | 7fbc5af2fa822231182c85df8d5d9826e8c1ecae /src/bench/coin_selection.cpp | |
| parent | Merge #9412: build: Fix 'make deploy' for OSX (diff) | |
| download | discoin-73f41190b91dce9c125b1828b18f7625e0200145.tar.xz discoin-73f41190b91dce9c125b1828b18f7625e0200145.zip | |
Refactoring: Removed using namespace <xxx> from bench/ and test/ source files.
Diffstat (limited to 'src/bench/coin_selection.cpp')
| -rw-r--r-- | src/bench/coin_selection.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index cacead4a5..9db6492e5 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -8,9 +8,7 @@ #include <boost/foreach.hpp> #include <set> -using namespace std; - -static void addCoin(const CAmount& nValue, const CWallet& wallet, vector<COutput>& vCoins) +static void addCoin(const CAmount& nValue, const CWallet& wallet, std::vector<COutput>& vCoins) { int nInput = 0; @@ -36,7 +34,7 @@ static void addCoin(const CAmount& nValue, const CWallet& wallet, vector<COutput static void CoinSelection(benchmark::State& state) { const CWallet wallet; - vector<COutput> vCoins; + std::vector<COutput> vCoins; LOCK(wallet.cs_wallet); while (state.KeepRunning()) { @@ -50,7 +48,7 @@ static void CoinSelection(benchmark::State& state) addCoin(1000 * COIN, wallet, vCoins); addCoin(3 * COIN, wallet, vCoins); - set<pair<const CWalletTx*, unsigned int> > setCoinsRet; + std::set<std::pair<const CWalletTx*, unsigned int> > setCoinsRet; CAmount nValueRet; bool success = wallet.SelectCoinsMinConf(1003 * COIN, 1, 6, 0, vCoins, setCoinsRet, nValueRet); assert(success); |