mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Case realization parameters. Return empty object and method name change
This commit is contained in:
parent
d043545747
commit
56d0112b07
@ -98,7 +98,7 @@ void RigCaseRealizationParameters::addParameter(const QString& name, const QStri
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigCaseRealizationParameters::Value RigCaseRealizationParameters::parameterValue(const QString& name)
|
||||
{
|
||||
if (m_parameters.count(name) == 0) return std::numeric_limits<double>::infinity();
|
||||
if (m_parameters.count(name) == 0) return Value();
|
||||
return m_parameters[name];
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
void setValue(double value);
|
||||
void setValue(const QString& value);
|
||||
|
||||
bool isEmpty() const { return m_valueType == TYPE_NONE; }
|
||||
bool isValid() const { return m_valueType == TYPE_NONE; }
|
||||
bool isNumeric() const { return m_valueType == TYPE_NUMERIC; }
|
||||
bool isText() const { return m_valueType == TYPE_TEXT; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user