mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Convert to enum class
This commit is contained in:
@@ -69,7 +69,7 @@ bool RimWellLogCurveCommonDataSource::DoubleComparator::operator()( const double
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellLogCurveCommonDataSource::RimWellLogCurveCommonDataSource()
|
||||
: m_caseType( RiaDefines::UNDEFINED_CASE )
|
||||
: m_caseType( RiaDefines::CaseType::UNDEFINED_CASE )
|
||||
{
|
||||
CAF_PDM_InitObject( "Change Data Source", "", "", "" );
|
||||
|
||||
@@ -758,12 +758,14 @@ QList<caf::PdmOptionItemInfo>
|
||||
|
||||
if ( fieldNeedingOptions == &m_case )
|
||||
{
|
||||
if ( m_caseType == RiaDefines::GEOMECH_ODB_CASE )
|
||||
if ( m_caseType == RiaDefines::CaseType::GEOMECH_ODB_CASE )
|
||||
{
|
||||
RimTools::geoMechCaseOptionItems( &options );
|
||||
}
|
||||
else if ( m_caseType == RiaDefines::ECLIPSE_RESULT_CASE || m_caseType == RiaDefines::ECLIPSE_INPUT_CASE ||
|
||||
m_caseType == RiaDefines::ECLIPSE_SOURCE_CASE || m_caseType == RiaDefines::ECLIPSE_STAT_CASE )
|
||||
else if ( m_caseType == RiaDefines::CaseType::ECLIPSE_RESULT_CASE ||
|
||||
m_caseType == RiaDefines::CaseType::ECLIPSE_INPUT_CASE ||
|
||||
m_caseType == RiaDefines::CaseType::ECLIPSE_SOURCE_CASE ||
|
||||
m_caseType == RiaDefines::CaseType::ECLIPSE_STAT_CASE )
|
||||
{
|
||||
RimTools::eclipseCaseOptionItems( &options );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user