From 5a2e3b508597880563bfa1ee889da0b452843ae2 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 31 Jan 2023 05:02:07 +0000 Subject: new => make_unique --- searchlib/src/tests/bitcompression/expgolomb/expgolomb_test.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'searchlib/src/tests') diff --git a/searchlib/src/tests/bitcompression/expgolomb/expgolomb_test.cpp b/searchlib/src/tests/bitcompression/expgolomb/expgolomb_test.cpp index e9b915a14d9..9f133ffb1f7 100644 --- a/searchlib/src/tests/bitcompression/expgolomb/expgolomb_test.cpp +++ b/searchlib/src/tests/bitcompression/expgolomb/expgolomb_test.cpp @@ -111,8 +111,7 @@ public: static std::unique_ptr make(DCB &dc, int kValue) { - return std::unique_ptr - (new DecodeExpGolombVarK(dc, kValue)); + return std::make_unique>(dc, kValue); } }; @@ -181,8 +180,7 @@ public: static std::unique_ptr make(DCB &dc, int) { - return std::unique_ptr - (new DecodeExpGolombConstK(dc)); + return std::make_unique>(dc); } }; -- cgit v1.2.3