From 6eb73695c4c6e546b2fc3a6070c9bb35ef2587c9 Mon Sep 17 00:00:00 2001 From: Richard Raustad Date: Sun, 1 Sep 2024 14:46:26 -0400 Subject: [PATCH] const --- src/EnergyPlus/ZoneTempPredictorCorrector.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/EnergyPlus/ZoneTempPredictorCorrector.cc b/src/EnergyPlus/ZoneTempPredictorCorrector.cc index 1c836b0e829..adc02c8149b 100644 --- a/src/EnergyPlus/ZoneTempPredictorCorrector.cc +++ b/src/EnergyPlus/ZoneTempPredictorCorrector.cc @@ -366,7 +366,7 @@ void GetZoneAirSetPoints(EnergyPlusData &state) TStatObjects.ZoneListActive = false; TStatObjects.ZoneOrZoneListPtr = Item1; } else if (ZLItem > 0) { - auto &ZoneList = state.dataHeatBal->ZoneList(ZLItem); + auto const &ZoneList = state.dataHeatBal->ZoneList(ZLItem); TStatObjects.TempControlledZoneStartPtr = state.dataZoneCtrls->NumTempControlledZones + 1; state.dataZoneCtrls->NumTempControlledZones += ZoneList.NumOfZones; TStatObjects.NumOfZones = ZoneList.NumOfZones; @@ -978,7 +978,7 @@ void GetZoneAirSetPoints(EnergyPlusData &state) ComfortTStatObjects.ZoneListActive = false; ComfortTStatObjects.ZoneOrZoneListPtr = Item1; } else if (ZLItem > 0) { - auto &ZoneList = state.dataHeatBal->ZoneList(ZLItem); + auto const &ZoneList = state.dataHeatBal->ZoneList(ZLItem); ComfortTStatObjects.ComfortControlledZoneStartPtr = state.dataZoneCtrls->NumComfortControlledZones + 1; state.dataZoneCtrls->NumComfortControlledZones += ZoneList.NumOfZones; ComfortTStatObjects.NumOfZones = ZoneList.NumOfZones; @@ -1810,7 +1810,7 @@ void GetZoneAirSetPoints(EnergyPlusData &state) Real64 ZoneVolCapMultpGenContam_temp = 0.0; for (int ZoneNum = 1; ZoneNum <= NumOfZones; ZoneNum++) { - auto &Zone = state.dataHeatBal->Zone(ZoneNum); + auto const &Zone = state.dataHeatBal->Zone(ZoneNum); ZoneVolCapMultpSens_temp += Zone.ZoneVolCapMultpSens; ZoneVolCapMultpMoist_temp += Zone.ZoneVolCapMultpMoist; ZoneVolCapMultpCO2_temp += Zone.ZoneVolCapMultpCO2; @@ -2285,7 +2285,7 @@ void GetZoneAirSetPoints(EnergyPlusData &state) state.dataZoneCtrls->StagedTStatObjects(Item).ZoneListActive = false; state.dataZoneCtrls->StagedTStatObjects(Item).ZoneOrZoneListPtr = Item1; } else if (ZLItem > 0) { - auto &ZoneList = state.dataHeatBal->ZoneList(ZLItem); + auto const &ZoneList = state.dataHeatBal->ZoneList(ZLItem); state.dataZoneCtrls->StagedTStatObjects(Item).TempControlledZoneStartPtr = state.dataZoneTempPredictorCorrector->NumStageCtrZone + 1; state.dataZoneTempPredictorCorrector->NumStageCtrZone += ZoneList.NumOfZones; state.dataZoneCtrls->StagedTStatObjects(Item).NumOfZones = ZoneList.NumOfZones;