From 05d2a5807d9e98d19bee1992c1948aaf35fd0315 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Thu, 31 Mar 2016 12:44:56 +0100 Subject: compat: Implement std::make_unique. --- cli/cli_dump.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli') diff --git a/cli/cli_dump.cpp b/cli/cli_dump.cpp index 682ddf61..817095bb 100644 --- a/cli/cli_dump.cpp +++ b/cli/cli_dump.cpp @@ -37,7 +37,7 @@ #include #include -#include "cxx_compat.hpp" // for std::to_string +#include "cxx_compat.hpp" // for std::to_string, std::make_unique #include "cli.hpp" #include "cli_pager.hpp" @@ -224,9 +224,9 @@ command(int argc, char *argv[]) std::unique_ptr dumper; if (blobs) { - dumper = std::unique_ptr(new BlobDumper(std::cout, dumpFlags)); + dumper = std::make_unique(std::cout, dumpFlags); } else { - dumper = std::unique_ptr(new trace::Dumper(std::cout, dumpFlags)); + dumper = std::make_unique(std::cout, dumpFlags); } for (int i = optind; i < argc; ++i) { -- cgit v1.2.3