From 061ed96d97690e3f47f8aa5c0745d02cfca2bd90 Mon Sep 17 00:00:00 2001 From: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> Date: Fri, 31 Jan 2025 00:16:24 -0600 Subject: [PATCH] Rip std::make_unique --- src/formatting.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/formatting.cpp b/src/formatting.cpp index 16f40d9..292cdef 100644 --- a/src/formatting.cpp +++ b/src/formatting.cpp @@ -197,12 +197,12 @@ namespace cpptrace { } }; - formatter::formatter() : pimpl(std::make_unique()) {} + formatter::formatter() : pimpl(std::unique_ptr(new impl)) {} formatter::~formatter() = default; - formatter::formatter(const formatter& other) : pimpl(std::make_unique(*other.pimpl)) {} + formatter::formatter(const formatter& other) : pimpl(std::unique_ptr(new impl(*other.pimpl))) {} formatter& formatter::operator=(const formatter& other) { - pimpl = std::make_unique(*other.pimpl); + pimpl = std::unique_ptr(new impl(*other.pimpl)); return *this; }