From c6ff78eeeed55e396561184a47c46d6f4b4b733b Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Sat, 17 Aug 2024 12:24:00 +0200 Subject: [PATCH] [GCC13] Avoid Wdangling warning in HcalTPGCoderULUT.cc --- CalibCalorimetry/HcalTPGEventSetup/src/HcalTPGCoderULUT.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CalibCalorimetry/HcalTPGEventSetup/src/HcalTPGCoderULUT.cc b/CalibCalorimetry/HcalTPGEventSetup/src/HcalTPGCoderULUT.cc index 70929abd31615..775a10cb76255 100644 --- a/CalibCalorimetry/HcalTPGEventSetup/src/HcalTPGCoderULUT.cc +++ b/CalibCalorimetry/HcalTPGEventSetup/src/HcalTPGCoderULUT.cc @@ -160,7 +160,8 @@ HcalTPGCoderULUT::ReturnType HcalTPGCoderULUT::produce(const HcalTPGRecord& iRec auto host = holder_.makeOrGet([]() { return new HostType; }); const auto& topo = iRecord.get(topoToken_); - const auto& delay = iRecord.getRecord().get(delayToken_); + const auto& delayRcd = iRecord.getRecord(); + const auto& delay = delayRcd.get(delayToken_); if (read_Ascii_ || read_XML_) { buildCoder(&topo, &delay, host.get()); } else {