#10367 Janitor: Remove unneccessary 'this' pointers

This commit is contained in:
Kristian Bendiksen
2023-08-04 09:04:14 +02:00
parent 2614cf3d62
commit 5bf2c2a89d
292 changed files with 1625 additions and 1664 deletions

View File

@@ -69,7 +69,7 @@ void RimWellMeasurementCollection::updateAllCurves()
curve->loadDataAndUpdate( true );
}
this->updateConnectedEditors();
updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
@@ -129,7 +129,7 @@ void RimWellMeasurementCollection::insertMeasurement( RimWellMeasurement* insert
m_measurements.push_back( measurement );
addFilePath( measurement->filePath() );
this->updateAllCurves();
updateAllCurves();
}
//--------------------------------------------------------------------------------------------------
@@ -139,7 +139,7 @@ void RimWellMeasurementCollection::appendMeasurement( RimWellMeasurement* measur
{
m_measurements.push_back( measurement );
addFilePath( measurement->filePath() );
this->updateAllCurves();
updateAllCurves();
}
//--------------------------------------------------------------------------------------------------
@@ -150,7 +150,7 @@ void RimWellMeasurementCollection::deleteMeasurement( RimWellMeasurement* measur
m_measurements.removeChild( measurementToDelete );
delete measurementToDelete;
this->updateAllCurves();
updateAllCurves();
}
//--------------------------------------------------------------------------------------------------
@@ -159,7 +159,7 @@ void RimWellMeasurementCollection::deleteMeasurement( RimWellMeasurement* measur
void RimWellMeasurementCollection::deleteAllMeasurements()
{
m_measurements.deleteChildren();
this->updateAllCurves();
updateAllCurves();
}
//--------------------------------------------------------------------------------------------------
@@ -262,5 +262,5 @@ void RimWellMeasurementCollection::removeMeasurementsForFilePath( RimWellMeasure
}
RimProject::current()->scheduleCreateDisplayModelAndRedrawAllViews();
this->updateAllCurves();
updateAllCurves();
}

View File

@@ -113,24 +113,24 @@ void RimWellMeasurementCurve::onLoadDataAndUpdate( bool updateParentPlot )
}
bool useLogarithmicScale = false;
this->setPropertyValuesWithMdAndTVD( values,
measuredDepthValues,
trueVerticalDepthValues,
m_wellPath->wellPathGeometry()->rkbDiff(),
RiaDefines::DepthUnitType::UNIT_METER,
false,
useLogarithmicScale );
setPropertyValuesWithMdAndTVD( values,
measuredDepthValues,
trueVerticalDepthValues,
m_wellPath->wellPathGeometry()->rkbDiff(),
RiaDefines::DepthUnitType::UNIT_METER,
false,
useLogarithmicScale );
}
else
{
bool useLogarithmicScale = false;
this->setPropertyValuesAndDepths( values,
measuredDepthValues,
RiaDefines::DepthTypeEnum::MEASURED_DEPTH,
0.0,
RiaDefines::DepthUnitType::UNIT_METER,
false,
useLogarithmicScale );
setPropertyValuesAndDepths( values,
measuredDepthValues,
RiaDefines::DepthTypeEnum::MEASURED_DEPTH,
0.0,
RiaDefines::DepthUnitType::UNIT_METER,
false,
useLogarithmicScale );
}
}
@@ -151,7 +151,7 @@ void RimWellMeasurementCurve::onLoadDataAndUpdate( bool updateParentPlot )
}
RiaDefines::DepthTypeEnum depthType = RiaDefines::DepthTypeEnum::MEASURED_DEPTH;
if ( wellLogPlot && this->curveData()->availableDepthTypes().count( wellLogPlot->depthType() ) )
if ( wellLogPlot && curveData()->availableDepthTypes().count( wellLogPlot->depthType() ) )
{
depthType = wellLogPlot->depthType();
}
@@ -159,14 +159,14 @@ void RimWellMeasurementCurve::onLoadDataAndUpdate( bool updateParentPlot )
if ( m_plotCurve )
{
bool useLogarithmicScale = false;
m_plotCurve->setSamplesFromXValuesAndYValues( this->curveData()->propertyValuesByIntervals(),
this->curveData()->depthValuesByIntervals( depthType, displayUnit ),
m_plotCurve->setSamplesFromXValuesAndYValues( curveData()->propertyValuesByIntervals(),
curveData()->depthValuesByIntervals( depthType, displayUnit ),
useLogarithmicScale );
m_plotCurve->setLineSegmentStartStopIndices( this->curveData()->polylineStartStopIndices() );
m_plotCurve->setLineSegmentStartStopIndices( curveData()->polylineStartStopIndices() );
}
}
this->RimPlotCurve::updateCurvePresentation( updateParentPlot );
RimPlotCurve::updateCurvePresentation( updateParentPlot );
if ( updateParentPlot )
{
@@ -204,7 +204,7 @@ void RimWellMeasurementCurve::fieldChangedByUi( const caf::PdmFieldHandle* chang
if ( changedField == &m_wellPath || changedField == &m_measurementKind )
{
this->loadDataAndUpdate( true );
loadDataAndUpdate( true );
}
if ( m_parentPlot ) m_parentPlot->replot();

View File

@@ -84,7 +84,7 @@ RimWellMeasurementInView::RimWellMeasurementInView()
CAF_PDM_InitField( &m_radiusScaleFactor, "RadiusScaleFactor", 2.5, "Radius Scale" );
m_radiusScaleFactor.uiCapability()->setUiEditorTypeName( caf::PdmUiDoubleValueEditor::uiEditorTypeName() );
this->setName( "Well Measurement" );
setName( "Well Measurement" );
m_minimumResultValue = cvf::UNDEFINED_DOUBLE;
m_maximumResultValue = cvf::UNDEFINED_DOUBLE;

View File

@@ -53,7 +53,7 @@ RimWellMeasurementInViewCollection::RimWellMeasurementInViewCollection()
m_isChecked = false;
this->setName( "Well Measurements" );
setName( "Well Measurements" );
CAF_PDM_InitField( &m_linkWellVisibility, "linkWellVisibility", true, "Link Visibility to Well Path Visibility" );
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &m_linkWellVisibility );