From 13ede69de49ba478c1d8af799afbf4f716764147 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Thu, 4 Apr 2024 09:16:57 +0200 Subject: [PATCH] Refactor: Fix misspelling of "synchronize". --- .../Commands/RicNewContourMapViewFeature.cpp | 2 +- .../Faults/RimFaultInViewCollection.cpp | 4 ++-- .../ProjectDataModel/Faults/RimFaultInViewCollection.h | 2 +- .../GridCrossPlots/RimGridCrossPlotDataSet.cpp | 8 ++++---- .../Intersections/RimIntersectionCollection.cpp | 8 ++++---- .../Intersections/RimIntersectionCollection.h | 2 +- ApplicationLibCode/ProjectDataModel/Rim3dView.cpp | 2 +- ApplicationLibCode/ProjectDataModel/Rim3dView.h | 2 +- .../ProjectDataModel/RimEclipseInputProperty.h | 2 +- ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp | 10 +++++----- ApplicationLibCode/ProjectDataModel/RimEclipseView.h | 2 +- .../ProjectDataModel/Seismic/RimSeismicView.cpp | 2 +- 12 files changed, 23 insertions(+), 23 deletions(-) diff --git a/ApplicationLibCode/Commands/RicNewContourMapViewFeature.cpp b/ApplicationLibCode/Commands/RicNewContourMapViewFeature.cpp index 5793c615c0..55d36360da 100644 --- a/ApplicationLibCode/Commands/RicNewContourMapViewFeature.cpp +++ b/ApplicationLibCode/Commands/RicNewContourMapViewFeature.cpp @@ -256,7 +256,7 @@ RimEclipseContourMapView* RicNewContourMapViewFeature::createEclipseContourMapFr eclipseCase->contourMapCollection()->push_back( contourMap ); - contourMap->syncronizeLocalAnnotationsFromGlobal(); + contourMap->synchronizeLocalAnnotationsFromGlobal(); // Resolve references after contour map has been inserted into Rim structures std::vector fieldsWithFailingResolve; diff --git a/ApplicationLibCode/ProjectDataModel/Faults/RimFaultInViewCollection.cpp b/ApplicationLibCode/ProjectDataModel/Faults/RimFaultInViewCollection.cpp index 2f082dcf16..79a75e944b 100644 --- a/ApplicationLibCode/ProjectDataModel/Faults/RimFaultInViewCollection.cpp +++ b/ApplicationLibCode/ProjectDataModel/Faults/RimFaultInViewCollection.cpp @@ -238,7 +238,7 @@ RimFaultInView* RimFaultInViewCollection::findFaultByName( QString name ) } //-------------------------------------------------------------------------------------------------- -/// A comparing function used to sort Faults in the RimFaultCollection::syncronizeFaults() method +/// A comparing function used to sort Faults in the RimFaultCollection::synchronizeFaults() method //-------------------------------------------------------------------------------------------------- bool faultComparator( const cvf::ref& a, const cvf::ref& b ) { @@ -252,7 +252,7 @@ bool faultComparator( const cvf::ref& a, const cvf::ref& b ) //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- -void RimFaultInViewCollection::syncronizeFaults() +void RimFaultInViewCollection::synchronizeFaults() { if ( !( parentView() && parentView()->mainGrid() ) ) return; diff --git a/ApplicationLibCode/ProjectDataModel/Faults/RimFaultInViewCollection.h b/ApplicationLibCode/ProjectDataModel/Faults/RimFaultInViewCollection.h index e0c2620c47..1a2856d482 100644 --- a/ApplicationLibCode/ProjectDataModel/Faults/RimFaultInViewCollection.h +++ b/ApplicationLibCode/ProjectDataModel/Faults/RimFaultInViewCollection.h @@ -73,7 +73,7 @@ class RimFaultInViewCollection : public caf::PdmObject void setShowOppositeFaultFaces( bool bEnabled ); void setShowFaultLabelWithFieldChanged( bool bEnabled ); - void syncronizeFaults(); + void synchronizeFaults(); bool isGridVisualizationMode() const; bool shouldApplyCellFiltersToFaults() const; diff --git a/ApplicationLibCode/ProjectDataModel/GridCrossPlots/RimGridCrossPlotDataSet.cpp b/ApplicationLibCode/ProjectDataModel/GridCrossPlots/RimGridCrossPlotDataSet.cpp index 977fd86dac..6d51700cc6 100644 --- a/ApplicationLibCode/ProjectDataModel/GridCrossPlots/RimGridCrossPlotDataSet.cpp +++ b/ApplicationLibCode/ProjectDataModel/GridCrossPlots/RimGridCrossPlotDataSet.cpp @@ -688,7 +688,7 @@ void RimGridCrossPlotDataSet::createCurves( const RigEclipseCrossPlotResult& res legendConfig()->scalarMapper()->majorTickValues( &tickValues ); } - // NB : Make sure iteration of curve and groups are syncronized with createCurves() + // NB : Make sure iteration of curve and groups are synchronized with createCurves() for ( auto it = m_groupedResults.rbegin(); it != m_groupedResults.rend(); ++it ) { auto [groupIndex, values] = *it; @@ -724,7 +724,7 @@ void RimGridCrossPlotDataSet::fillCurveDataInExistingCurves( const RigEclipseCro } else { - // NB : Make sure iteration of curve and groups are syncronized with fillCurveDataInExistingCurves() + // NB : Make sure iteration of curve and groups are synchronized with fillCurveDataInExistingCurves() auto curveIt = m_crossPlotCurves.begin(); auto groupIt = m_groupedResults.rbegin(); for ( ; curveIt != m_crossPlotCurves.end() && groupIt != m_groupedResults.rend(); ++curveIt, ++groupIt ) @@ -768,7 +768,7 @@ void RimGridCrossPlotDataSet::createRegressionCurves( const RigEclipseCrossPlotR legendConfig()->scalarMapper()->majorTickValues( &tickValues ); } - // NB : Make sure iteration of curve and groups are syncronized with createCurves() + // NB : Make sure iteration of curve and groups are synchronized with createCurves() for ( auto it = m_groupedResults.rbegin(); it != m_groupedResults.rend(); ++it ) { auto [groupIndex, values] = *it; @@ -808,7 +808,7 @@ void RimGridCrossPlotDataSet::fillCurveDataInExistingRegressionCurves( const Rig } else { - // NB : Make sure iteration of curve and groups are syncronized with fillCurveDataInExistingCurves() + // NB : Make sure iteration of curve and groups are synchronized with fillCurveDataInExistingCurves() auto curveIt = m_crossPlotRegressionCurves.begin(); auto groupIt = m_groupedResults.rbegin(); for ( ; curveIt != m_crossPlotRegressionCurves.end() && groupIt != m_groupedResults.rend(); ++curveIt, ++groupIt ) diff --git a/ApplicationLibCode/ProjectDataModel/Intersections/RimIntersectionCollection.cpp b/ApplicationLibCode/ProjectDataModel/Intersections/RimIntersectionCollection.cpp index 3157f32f49..f5845391b8 100644 --- a/ApplicationLibCode/ProjectDataModel/Intersections/RimIntersectionCollection.cpp +++ b/ApplicationLibCode/ProjectDataModel/Intersections/RimIntersectionCollection.cpp @@ -305,7 +305,7 @@ void RimIntersectionCollection::appendIntersectionAndUpdate( RimExtrudedCurveInt intersection->setDepthOverride( m_depthThresholdOverridden ); intersection->setDepthOverrideParameters( m_depthUpperThreshold, m_depthLowerThreshold, m_depthFilterType() ); - syncronize2dIntersectionViews(); + synchronize2dIntersectionViews(); updateConnectedEditors(); Riu3DMainWindowTools::selectAsCurrentItem( intersection, allowActiveViewChange ); @@ -326,7 +326,7 @@ void RimIntersectionCollection::appendIntersectionNoUpdate( RimExtrudedCurveInte //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- -void RimIntersectionCollection::syncronize2dIntersectionViews() +void RimIntersectionCollection::synchronize2dIntersectionViews() { auto ownerCase = firstAncestorOrThisOfTypeAsserted(); ownerCase->intersectionViewCollection()->syncFromExistingIntersections( true ); @@ -427,7 +427,7 @@ void RimIntersectionCollection::fieldChangedByUi( const caf::PdmFieldHandle* cha //-------------------------------------------------------------------------------------------------- void RimIntersectionCollection::onChildDeleted( caf::PdmChildArrayFieldHandle* childArray, std::vector& referringObjects ) { - syncronize2dIntersectionViews(); + synchronize2dIntersectionViews(); rebuild3dView(); } @@ -436,7 +436,7 @@ void RimIntersectionCollection::onChildDeleted( caf::PdmChildArrayFieldHandle* c //-------------------------------------------------------------------------------------------------- void RimIntersectionCollection::onChildAdded( caf::PdmFieldHandle* containerForNewObject ) { - syncronize2dIntersectionViews(); + synchronize2dIntersectionViews(); rebuild3dView(); } diff --git a/ApplicationLibCode/ProjectDataModel/Intersections/RimIntersectionCollection.h b/ApplicationLibCode/ProjectDataModel/Intersections/RimIntersectionCollection.h index 47e67d35e9..7e6eb07ee8 100644 --- a/ApplicationLibCode/ProjectDataModel/Intersections/RimIntersectionCollection.h +++ b/ApplicationLibCode/ProjectDataModel/Intersections/RimIntersectionCollection.h @@ -66,7 +66,7 @@ class RimIntersectionCollection : public caf::PdmObject void updateIntersectionBoxGeometry(); - void syncronize2dIntersectionViews(); + void synchronize2dIntersectionViews(); void scheduleCreateDisplayModelAndRedraw2dIntersectionViews(); bool shouldApplyCellFiltersToIntersections() const; diff --git a/ApplicationLibCode/ProjectDataModel/Rim3dView.cpp b/ApplicationLibCode/ProjectDataModel/Rim3dView.cpp index 584c719847..b48917ba63 100644 --- a/ApplicationLibCode/ProjectDataModel/Rim3dView.cpp +++ b/ApplicationLibCode/ProjectDataModel/Rim3dView.cpp @@ -1845,7 +1845,7 @@ RimAnnotationInViewCollection* Rim3dView::annotationCollection() const //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- -void Rim3dView::syncronizeLocalAnnotationsFromGlobal() +void Rim3dView::synchronizeLocalAnnotationsFromGlobal() { RimProject* proj = RimProject::current(); if ( proj && proj->activeOilField() ) diff --git a/ApplicationLibCode/ProjectDataModel/Rim3dView.h b/ApplicationLibCode/ProjectDataModel/Rim3dView.h index a193617c6a..7272e8ea8a 100644 --- a/ApplicationLibCode/ProjectDataModel/Rim3dView.h +++ b/ApplicationLibCode/ProjectDataModel/Rim3dView.h @@ -195,7 +195,7 @@ class Rim3dView : public RimViewWindow, public RiuViewerToViewInterface, public virtual void updateViewTreeItems( RiaDefines::ItemIn3dView itemType ); RimAnnotationInViewCollection* annotationCollection() const; - void syncronizeLocalAnnotationsFromGlobal(); + void synchronizeLocalAnnotationsFromGlobal(); protected: static void removeModelByName( cvf::Scene* scene, const cvf::String& modelName ); diff --git a/ApplicationLibCode/ProjectDataModel/RimEclipseInputProperty.h b/ApplicationLibCode/ProjectDataModel/RimEclipseInputProperty.h index f9d7e3793a..d11ad42645 100644 --- a/ApplicationLibCode/ProjectDataModel/RimEclipseInputProperty.h +++ b/ApplicationLibCode/ProjectDataModel/RimEclipseInputProperty.h @@ -51,7 +51,7 @@ class RimEclipseInputProperty : public caf::PdmObject // Fields: caf::PdmField resultName; caf::PdmField eclipseKeyword; - caf::PdmField fileName; // ReadOnly Serves as key to syncronize + caf::PdmField fileName; // ReadOnly Serves as key to synchronize // read eclipse prop data and this inputProp object. caf::PdmField resolvedState; // ReadOnly and not writable diff --git a/ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp b/ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp index 0668713db3..20df13f052 100644 --- a/ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimEclipseView.cpp @@ -1109,7 +1109,7 @@ void RimEclipseView::onLoadDataAndUpdate() m_propertyFilterCollection()->loadAndInitializePropertyFilters(); - faultCollection()->syncronizeFaults(); + faultCollection()->synchronizeFaults(); m_wellCollection->scaleWellDisks(); @@ -1118,9 +1118,9 @@ void RimEclipseView::onLoadDataAndUpdate() scheduleReservoirGridGeometryRegen(); m_simWellsPartManager->clearGeometryCache(); - syncronizeWellsWithResults(); + synchronizeWellsWithResults(); - syncronizeLocalAnnotationsFromGlobal(); + synchronizeLocalAnnotationsFromGlobal(); { // Update simulation well fractures after well cell results are imported @@ -1586,7 +1586,7 @@ RimEclipseCase* RimEclipseView::eclipseCase() const */ //-------------------------------------------------------------------------------------------------- -void RimEclipseView::syncronizeWellsWithResults() +void RimEclipseView::synchronizeWellsWithResults() { if ( !( eclipseCase() && eclipseCase()->eclipseCaseData() ) ) return; @@ -1781,7 +1781,7 @@ void RimEclipseView::updateDisplayModelForWellResults() m_reservoirGridPartManager->clearGeometryCache(); m_simWellsPartManager->clearGeometryCache(); - syncronizeWellsWithResults(); + synchronizeWellsWithResults(); onCreateDisplayModel(); updateDisplayModelVisibility(); diff --git a/ApplicationLibCode/ProjectDataModel/RimEclipseView.h b/ApplicationLibCode/ProjectDataModel/RimEclipseView.h index 75c45ee640..573dad6557 100644 --- a/ApplicationLibCode/ProjectDataModel/RimEclipseView.h +++ b/ApplicationLibCode/ProjectDataModel/RimEclipseView.h @@ -209,7 +209,7 @@ class RimEclipseView : public RimGridView void updateFaultColors(); - void syncronizeWellsWithResults(); + void synchronizeWellsWithResults(); void onClampCurrentTimestep() override; size_t onTimeStepCountRequested() override; diff --git a/ApplicationLibCode/ProjectDataModel/Seismic/RimSeismicView.cpp b/ApplicationLibCode/ProjectDataModel/Seismic/RimSeismicView.cpp index 800bc01985..c5bed5b6be 100644 --- a/ApplicationLibCode/ProjectDataModel/Seismic/RimSeismicView.cpp +++ b/ApplicationLibCode/ProjectDataModel/Seismic/RimSeismicView.cpp @@ -408,7 +408,7 @@ void RimSeismicView::onUpdateLegends() void RimSeismicView::onLoadDataAndUpdate() { updateViewTreeItems( RiaDefines::ItemIn3dView::ALL ); - syncronizeLocalAnnotationsFromGlobal(); + synchronizeLocalAnnotationsFromGlobal(); onUpdateScaleTransform(); updateMdiWindowVisibility();