From 58e501c71c47e57f02afde1bd296a037038cd6d5 Mon Sep 17 00:00:00 2001 From: David Plowman Date: Fri, 28 Jul 2023 13:49:07 +0100 Subject: ipa: rpi: vc4: Make the StatisticsPtr construction clearer StatisticsPtr is a shared pointer, so the use of std::make_unique to create it was a bit confusing. Use std::make_shared instead. Signed-off-by: David Plowman Reviewed-by: Naushir Patuck Reviewed-by: Kieran Bingham Signed-off-by: Kieran Bingham --- src/ipa/rpi/vc4/vc4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ipa/rpi/vc4/vc4.cpp b/src/ipa/rpi/vc4/vc4.cpp index 7fd6a88a..1de0d3cc 100644 --- a/src/ipa/rpi/vc4/vc4.cpp +++ b/src/ipa/rpi/vc4/vc4.cpp @@ -191,7 +191,7 @@ RPiController::StatisticsPtr IpaVc4::platformProcessStats(Span mem) using namespace RPiController; const bcm2835_isp_stats *stats = reinterpret_cast(mem.data()); - StatisticsPtr statistics = std::make_unique(Statistics::AgcStatsPos::PreWb, + StatisticsPtr statistics = std::make_shared(Statistics::AgcStatsPos::PreWb, Statistics::ColourStatsPos::PostLsc); const Controller::HardwareConfig &hw = controller_.getHardwareConfig(); unsigned int i; -- cgit v1.2.1