mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10367 Janitor: Remove unneccessary 'this' pointers
This commit is contained in:
@@ -175,7 +175,7 @@ bool RimCellFilter::propagateToSubGrids() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimCellFilter::updateIconState()
|
||||
{
|
||||
caf::IconProvider iconProvider = this->uiIconProvider();
|
||||
caf::IconProvider iconProvider = uiIconProvider();
|
||||
|
||||
if ( !iconProvider.valid() ) return;
|
||||
|
||||
@@ -190,7 +190,7 @@ void RimCellFilter::updateIconState()
|
||||
|
||||
iconProvider.setActive( m_isActive && !m_isActive.uiCapability()->isUiReadOnly() );
|
||||
|
||||
this->setUiIcon( iconProvider );
|
||||
setUiIcon( iconProvider );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -277,7 +277,7 @@ void RimCellFilterCollection::addFilter( RimCellFilter* pFilter )
|
||||
setAutoName( pFilter );
|
||||
m_cellFilters.push_back( pFilter );
|
||||
connectToFilterUpdates( pFilter );
|
||||
this->updateConnectedEditors();
|
||||
updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -163,7 +163,7 @@ void RimCellRangeFilter::computeAndSetValidValues()
|
||||
cellCountK = std::clamp( cellCountK.v(), 1, static_cast<int>( grid->cellCountK() ) );
|
||||
startIndexK = std::clamp( startIndexK.v(), 1, static_cast<int>( grid->cellCountK() ) );
|
||||
}
|
||||
this->updateIconState();
|
||||
updateIconState();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -125,8 +125,8 @@ RimEclipseResultDefinition* RimEclipsePropertyFilter::resultDefinition() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipsePropertyFilter::rangeValues( double* lower, double* upper ) const
|
||||
{
|
||||
*lower = this->m_lowerBound;
|
||||
*upper = this->m_upperBound;
|
||||
*lower = m_lowerBound;
|
||||
*upper = m_upperBound;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -166,11 +166,11 @@ void RimEclipsePropertyFilter::fieldChangedByUi( const caf::PdmFieldHandle* chan
|
||||
{
|
||||
m_isDuplicatedFromLinkedView = false;
|
||||
|
||||
this->m_resultDefinition->loadResult();
|
||||
this->computeResultValueRange();
|
||||
m_resultDefinition->loadResult();
|
||||
computeResultValueRange();
|
||||
updateFilterName();
|
||||
this->updateIconState();
|
||||
this->uiCapability()->updateConnectedEditors();
|
||||
updateIconState();
|
||||
uiCapability()->updateConnectedEditors();
|
||||
|
||||
parentContainer()->updateDisplayModelNotifyManagedViews( this );
|
||||
}
|
||||
|
||||
@@ -80,9 +80,9 @@ void RimGeoMechPropertyFilter::fieldChangedByUi( const caf::PdmFieldHandle* chan
|
||||
if ( &lowerBound == changedField || &upperBound == changedField || &m_isActive == changedField || &m_filterMode == changedField ||
|
||||
&m_selectedCategoryValues == changedField )
|
||||
{
|
||||
this->updateIconState();
|
||||
this->updateFilterName();
|
||||
this->uiCapability()->updateConnectedEditors();
|
||||
updateIconState();
|
||||
updateFilterName();
|
||||
uiCapability()->updateConnectedEditors();
|
||||
|
||||
parentContainer()->updateDisplayModelNotifyManagedViews( this );
|
||||
}
|
||||
@@ -118,7 +118,7 @@ void RimGeoMechPropertyFilter::setToDefaultValues()
|
||||
|
||||
m_selectedCategoryValues = m_categoryValues;
|
||||
|
||||
this->updateFilterName();
|
||||
updateFilterName();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -213,7 +213,7 @@ void RimGeoMechPropertyFilter::updateActiveState()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimGeoMechPropertyFilter::isActiveAndHasResult()
|
||||
{
|
||||
return this->isActive() && this->resultDefinition->hasResult();
|
||||
return isActive() && resultDefinition->hasResult();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -161,8 +161,8 @@ RimPolygonFilter::RimPolygonFilter()
|
||||
m_polygonPlaneDepth.uiCapability()->setUiEditorTypeName( caf::PdmUiDoubleSliderEditor::uiEditorTypeName() );
|
||||
m_polygonPlaneDepth.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::LabelPosType::TOP );
|
||||
|
||||
this->setUi3dEditorTypeName( RicPolyline3dEditor::uiEditorTypeName() );
|
||||
this->uiCapability()->setUiTreeChildrenHidden( true );
|
||||
setUi3dEditorTypeName( RicPolyline3dEditor::uiEditorTypeName() );
|
||||
uiCapability()->setUiTreeChildrenHidden( true );
|
||||
|
||||
m_propagateToSubGrids = false;
|
||||
|
||||
@@ -412,7 +412,7 @@ void RimPolygonFilter::defineUiOrdering( QString uiConfigName, caf::PdmUiOrderin
|
||||
|
||||
bool readOnlyState = isFilterControlled();
|
||||
|
||||
std::vector<caf::PdmFieldHandle*> objFields = this->fields();
|
||||
std::vector<caf::PdmFieldHandle*> objFields = fields();
|
||||
for ( auto& objField : objFields )
|
||||
{
|
||||
objField->uiCapability()->setUiReadOnly( readOnlyState );
|
||||
@@ -426,7 +426,7 @@ void RimPolygonFilter::fieldChangedByUi( const caf::PdmFieldHandle* changedField
|
||||
{
|
||||
if ( changedField == &m_enablePicking )
|
||||
{
|
||||
this->updateConnectedEditors();
|
||||
updateConnectedEditors();
|
||||
|
||||
enableFilter( !m_enablePicking() );
|
||||
filterChanged.send();
|
||||
@@ -435,7 +435,7 @@ void RimPolygonFilter::fieldChangedByUi( const caf::PdmFieldHandle* changedField
|
||||
{
|
||||
updateCells();
|
||||
filterChanged.send();
|
||||
this->updateIconState();
|
||||
updateIconState();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -487,7 +487,7 @@ void RimPolygonFilter::updateCompundFilter( cvf::CellRangeFilter* cellRangeFilte
|
||||
for ( size_t cellidx : m_cells[gridIndex] )
|
||||
{
|
||||
grid->ijkFromCellIndex( cellidx, &i, &j, &k );
|
||||
if ( this->filterMode() == RimCellFilter::INCLUDE )
|
||||
if ( filterMode() == RimCellFilter::INCLUDE )
|
||||
{
|
||||
cellRangeFilter->addCellInclude( i, j, k, propagateToSubGrids() );
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ void RimUserDefinedFilter::updateCompundFilter( cvf::CellRangeFilter* cellRangeF
|
||||
|
||||
if ( gridIndex != m_gridIndex ) return;
|
||||
|
||||
if ( this->filterMode() == RimCellFilter::INCLUDE )
|
||||
if ( filterMode() == RimCellFilter::INCLUDE )
|
||||
{
|
||||
for ( const auto& cellIndex : m_individualCellIndices() )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user