Convert to enum class

This commit is contained in:
Magne Sjaastad
2020-04-24 08:22:32 +02:00
parent 95fc63fe7c
commit 72fefb4db5
21 changed files with 54 additions and 47 deletions

View File

@@ -37,9 +37,9 @@ namespace caf
template <>
void RicfExportWellLogPlotData::ExportFormatEnum::setUp()
{
addItem( RicfExportWellLogPlotData::LAS, "LAS", "LAS" );
addItem( RicfExportWellLogPlotData::ASCII, "ASCII", "ASCII" );
setDefault( RicfExportWellLogPlotData::LAS );
addItem( RicfExportWellLogPlotData::ExportFormat::LAS, "LAS", "LAS" );
addItem( RicfExportWellLogPlotData::ExportFormat::ASCII, "ASCII", "ASCII" );
setDefault( RicfExportWellLogPlotData::ExportFormat::LAS );
}
} // namespace caf
@@ -90,7 +90,7 @@ caf::PdmScriptResponse RicfExportWellLogPlotData::execute()
{
if ( plot->id() == m_viewId() )
{
if ( m_format() == ASCII )
if ( m_format() == ExportFormat::ASCII )
{
QString validFileName =
RicAsciiExportWellLogPlotFeature::makeValidExportFileName( plot,