aboutsummaryrefslogtreecommitdiffstats
path: root/core/bformatdec.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-12-10 22:07:20 -0800
committerChris Robinson <[email protected]>2021-12-10 22:07:20 -0800
commita75d35bbb06f74e58cb2232d4ca2ce47950f08cd (patch)
treea614eccbea22dc181a843a1bb81420b508446ea7 /core/bformatdec.cpp
parentc005d2c300a17f572ef245f334336a5553555fe9 (diff)
Use a vector in BFormatDec instead of FlexArray
FlexArray would be better since it's not likely to use much memory for the array, but the std::unique_ptr makes BFormatDec a non-standard layout, causing GCC and Clang to complain.
Diffstat (limited to 'core/bformatdec.cpp')
-rw-r--r--core/bformatdec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bformatdec.cpp b/core/bformatdec.cpp
index e3f8eaef..ed00566e 100644
--- a/core/bformatdec.cpp
+++ b/core/bformatdec.cpp
@@ -193,6 +193,6 @@ std::unique_ptr<BFormatDec> BFormatDec::Create(const size_t inchans,
const al::span<const ChannelDec> coeffs, const al::span<const ChannelDec> coeffslf,
const float xover_f0norm, std::unique_ptr<FrontStablizer> stablizer)
{
- return std::unique_ptr<BFormatDec>{new(FamCount(inchans))
- BFormatDec{inchans, coeffs, coeffslf, xover_f0norm, std::move(stablizer)}};
+ return std::make_unique<BFormatDec>(inchans, coeffs, coeffslf, xover_f0norm,
+ std::move(stablizer));
}