From 452b37c75a010832ab96e0714c9cce47b9a64f3e Mon Sep 17 00:00:00 2001 From: Jasem Mutlaq Date: Sat, 23 Dec 2023 11:56:04 +0300 Subject: [PATCH] Fix bookworm compile error --- drivers/ccd/ccd_simulator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/ccd/ccd_simulator.cpp b/drivers/ccd/ccd_simulator.cpp index 1fbaf4aece..90a02e7f53 100644 --- a/drivers/ccd/ccd_simulator.cpp +++ b/drivers/ccd/ccd_simulator.cpp @@ -192,8 +192,9 @@ bool CCDSim::initProperties() // Resolution for (uint8_t i = 0; i < Resolutions.size(); i++) { - auto label = (std::ostringstream{} << Resolutions[i].first << " x " << Resolutions[i].second).str(); - ResolutionSP[i].fill(label.c_str(), label.c_str(), i == 0 ? ISS_ON : ISS_OFF); + std::ostringstream ss; + ss << Resolutions[i].first << " x " << Resolutions[i].second; + ResolutionSP[i].fill(ss.str().c_str(), ss.str().c_str(), i == 0 ? ISS_ON : ISS_OFF); } ResolutionSP.fill(getDeviceName(), "CCD_RESOLUTION", "Resolution", SIMULATOR_TAB, IP_RW, ISR_1OFMANY, 60, IPS_IDLE);