Skip to content

Commit

Permalink
Merge pull request #45731 from iarspider/iarspider-patch-20240817-4
Browse files Browse the repository at this point in the history
[GCC13] Avoid Wdangling-reference warning in HcalTPGCoderULUT.cc
  • Loading branch information
cmsbuild authored Aug 20, 2024
2 parents 808ec3f + c6ff78e commit 13f58da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CalibCalorimetry/HcalTPGEventSetup/src/HcalTPGCoderULUT.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<HcalDbRecord>().get(delayToken_);
const auto& delayRcd = iRecord.getRecord<HcalDbRecord>();
const auto& delay = delayRcd.get(delayToken_);
if (read_Ascii_ || read_XML_) {
buildCoder(&topo, &delay, host.get());
} else {
Expand Down

0 comments on commit 13f58da

Please sign in to comment.