#5279 Formations GeoMech : Add const and simplify access

This commit is contained in:
Magne Sjaastad
2020-01-03 11:59:17 +01:00
parent afc9ace33e
commit 1c4feade71
5 changed files with 23 additions and 19 deletions

View File

@@ -2031,10 +2031,7 @@ std::vector<QString> RimWellLogTrack::formationNamesVector( RimCase* rimCase )
}
else if ( geoMechCase )
{
if ( geoMechCase->geoMechData()->femPartResults()->activeFormationNames() )
{
return geoMechCase->geoMechData()->femPartResults()->activeFormationNames()->formationNames();
}
return geoMechCase->geoMechData()->femPartResults()->formationNames();
}
return std::vector<QString>();