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_fuzzy.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_fuzzy.cpp')
-rw-r--r-- | src/test/test_bitcoin_fuzzy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_bitcoin_fuzzy.cpp b/src/test/test_bitcoin_fuzzy.cpp index 11b7c66ccd..88c082ff66 100644 --- a/src/test/test_bitcoin_fuzzy.cpp +++ b/src/test/test_bitcoin_fuzzy.cpp @@ -279,7 +279,7 @@ static int test_one_input(std::vector<uint8_t> buffer) { static std::unique_ptr<ECCVerifyHandle> globalVerifyHandle; void initialize() { - globalVerifyHandle = std::unique_ptr<ECCVerifyHandle>(new ECCVerifyHandle()); + globalVerifyHandle = MakeUnique<ECCVerifyHandle>(); } // This function is used by libFuzzer |