SimpleHuDuanH2O: avoid use of dangling reference
using a reference to a temporary is not okay
This commit is contained in:
@@ -366,7 +366,7 @@ public:
|
||||
throw NumericalIssue(oss.str());
|
||||
}
|
||||
|
||||
const Evaluation& rho = liquidDensity(temperature, pressure, extrapolate);
|
||||
const Evaluation rho = liquidDensity(temperature, pressure, extrapolate);
|
||||
return Common::viscosity(temperature, rho);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user