#5007 Janitor : Do not call virtual methods from constructors

This commit is contained in:
Magne Sjaastad
2019-11-07 09:01:31 +01:00
parent a413f672ec
commit 388b92c092
3 changed files with 16 additions and 5 deletions

View File

@@ -26,10 +26,9 @@
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RigFemPartGrid::RigFemPartGrid( const RigFemPart* femPart )
RigFemPartGrid::RigFemPartGrid()
: m_femPart( nullptr )
{
m_femPart = femPart;
generateStructGridData();
}
//--------------------------------------------------------------------------------------------------
@@ -37,6 +36,15 @@ RigFemPartGrid::RigFemPartGrid( const RigFemPart* femPart )
//--------------------------------------------------------------------------------------------------
RigFemPartGrid::~RigFemPartGrid() {}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RigFemPartGrid::setFemPart( const RigFemPart* femPart )
{
m_femPart = femPart;
generateStructGridData();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------