diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-09-21 11:03:21 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-09-21 11:03:21 +0200 |
commit | b6718e373ed425fa2440ddd8f1b05c76b782dc2b (patch) | |
tree | 4e710e94ee3946bac22b1932d3b982102a24155f /src/test/test_bitcoin.cpp | |
parent | 8f464549c46db2954d7b64d1feb200eb35f2e7e8 (diff) | |
download | bitcoin-b6718e373ed425fa2440ddd8f1b05c76b782dc2b.tar.xz |
tests: Use MakeUnique to construct objects owned by unique_ptrs
Diffstat (limited to 'src/test/test_bitcoin.cpp')
-rw-r--r-- | src/test/test_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 0d7c9f0abf..766e34e5b5 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -107,7 +107,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha nScriptCheckThreads = 3; for (int i=0; i < nScriptCheckThreads-1; i++) threadGroup.create_thread(&ThreadScriptCheck); - g_connman = std::unique_ptr<CConnman>(new CConnman(0x1337, 0x1337)); // Deterministic randomness for tests. + g_connman = MakeUnique<CConnman>(0x1337, 0x1337); // Deterministic randomness for tests. connman = g_connman.get(); peerLogic.reset(new PeerLogicValidation(connman, scheduler, /*enable_bip61=*/true)); } |