mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Case realization parameters. Return empty object and method name change
This commit is contained in:
1 parent
d043545747
commit
56d0112b07
2 files changed
+2
-2
No files matched your search
@@ -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; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user