mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fix Coverity CID 38548
This commit is contained in:
@@ -621,16 +621,13 @@ private:
|
||||
public:
|
||||
|
||||
/// Default constructor
|
||||
IdealHelmholtzLogTau(){enabled = false;};
|
||||
IdealHelmholtzLogTau():a1(_HUGE),enabled(false){}
|
||||
|
||||
// Constructor
|
||||
IdealHelmholtzLogTau(CoolPropDbl a1){this->a1=a1; enabled = true;};
|
||||
IdealHelmholtzLogTau(CoolPropDbl a1):a1(a1),enabled(true){}
|
||||
|
||||
bool is_enabled() const {return enabled;};
|
||||
|
||||
//Destructor
|
||||
~IdealHelmholtzLogTau(){};
|
||||
|
||||
void to_json(rapidjson::Value &el, rapidjson::Document &doc){
|
||||
el.AddMember("type", "IdealHelmholtzLogTau", doc.GetAllocator());
|
||||
el.AddMember("a1", static_cast<double>(a1), doc.GetAllocator());
|
||||
|
||||
Reference in New Issue
Block a user