From: Arvin Schnell Date: Fri, 25 Jul 2025 08:14:47 +0000 (+0200) Subject: - use make_unique X-Git-Tag: v0.13.0~24^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=387383b2c6fc47bf8e7d724d492539bf367c422a;p=thirdparty%2Fsnapper.git - use make_unique --- diff --git a/snapper/AsciiFile.cc b/snapper/AsciiFile.cc index 9557146f..f1b4d0ca 100644 --- a/snapper/AsciiFile.cc +++ b/snapper/AsciiFile.cc @@ -365,10 +365,10 @@ namespace snapper switch (compression) { case Compression::NONE: - return unique_ptr(new Impl::None(t)); + return make_unique(t); case Compression::GZIP: - return unique_ptr(new Impl::Gzip(t)); + return make_unique(t); case Compression::ZSTD: break; @@ -851,10 +851,10 @@ namespace snapper switch (compression) { case Compression::NONE: - return unique_ptr(new Impl::None(t)); + return make_unique(t); case Compression::GZIP: - return unique_ptr(new Impl::Gzip(t)); + return make_unique(t); case Compression::ZSTD: break;