diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-31 05:02:07 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-31 05:02:07 +0000 |
commit | 5a2e3b508597880563bfa1ee889da0b452843ae2 (patch) | |
tree | b930fd39d12d5ad4ada1ff69dde4648cf577f213 /searchlib | |
parent | d793a7914ff5cdd6ed8aba9b633fc7bb13067698 (diff) |
new => make_unique
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/tests/bitcompression/expgolomb/expgolomb_test.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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<IDecodeFunc> make(DCB &dc, int kValue) { - return std::unique_ptr<IDecodeFunc> - (new DecodeExpGolombVarK<bigEndian>(dc, kValue)); + return std::make_unique<DecodeExpGolombVarK<bigEndian>>(dc, kValue); } }; @@ -181,8 +180,7 @@ public: static std::unique_ptr<IDecodeFunc> make(DCB &dc, int) { - return std::unique_ptr<IDecodeFunc> - (new DecodeExpGolombConstK<bigEndian, kValue>(dc)); + return std::make_unique<DecodeExpGolombConstK<bigEndian, kValue>>(dc); } }; |