Skip to content

Commit

Permalink
const/shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
rraustad committed Sep 13, 2024
1 parent 7e73788 commit c41c753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EnergyPlus/Material.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ constexpr std::array<std::string_view, (int)EcoRoofCalcMethod::Num> ecoRoofCalcM

int GetMaterialNum(EnergyPlusData &state, std::string const &matName)
{
auto &s_mat = state.dataMaterial;
auto const &s_mat = state.dataMaterial;
auto found = s_mat->materialMap.find(Util::makeUPPER(matName));
return (found != s_mat->materialMap.end()) ? found->second : 0;
}
Expand Down Expand Up @@ -1216,7 +1216,7 @@ void GetMaterialData(EnergyPlusData &state, bool &ErrorsFound) // set to true if
matGas->ROnly = true;

for (NumGas = 0; NumGas < NumGases; ++NumGas) {
GasType gasType = matGas->gases[NumGas].type;
gasType = matGas->gases[NumGas].type;
if (gasType != GasType::Custom) {
matGas->gasFracts[NumGas] = s_ipsc->rNumericArgs(3 + NumGas);
matGas->gases[NumGas] = gases[(int)gasType];
Expand Down

4 comments on commit c41c753

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CppCheck-InternalHeatGains (rraustad) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (2913 of 2913 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CppCheck-InternalHeatGains (rraustad) - Win64-Windows-10-VisualStudio-16: OK (2891 of 2891 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CppCheck-InternalHeatGains (rraustad) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-RelWithDebInfo: OK (2097 of 2097 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CppCheck-InternalHeatGains (rraustad) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-RelWithDebInfo: OK (799 of 799 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.