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/bench/bench_bitcoin.cpp | |
parent | 8f464549c46db2954d7b64d1feb200eb35f2e7e8 (diff) |
tests: Use MakeUnique to construct objects owned by unique_ptrs
Diffstat (limited to 'src/bench/bench_bitcoin.cpp')
-rw-r--r-- | src/bench/bench_bitcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/bench_bitcoin.cpp b/src/bench/bench_bitcoin.cpp index d7b8083e7c..4fa516cb81 100644 --- a/src/bench/bench_bitcoin.cpp +++ b/src/bench/bench_bitcoin.cpp @@ -82,7 +82,7 @@ int main(int argc, char** argv) return EXIT_FAILURE; } - std::unique_ptr<benchmark::Printer> printer(new benchmark::ConsolePrinter()); + std::unique_ptr<benchmark::Printer> printer = MakeUnique<benchmark::ConsolePrinter>(); std::string printer_arg = gArgs.GetArg("-printer", DEFAULT_BENCH_PRINTER); if ("plot" == printer_arg) { printer.reset(new benchmark::PlotlyPrinter( |