diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-12 15:09:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-14 10:52:46 +0200 |
commit | 70a30fd179266f65500b880ccb0f87011b670fca (patch) | |
tree | 881d1723620d030171ff3de9bad2cc96f80994ed /chart2/source/controller/main | |
parent | 9045d0bf35c9b4d5f6d8f791017124341abf8d4f (diff) |
loplugin: defaultparams
Change-Id: I65c0ed65b20f606cf1409a3158ff1ef1e2d6cd9f
Diffstat (limited to 'chart2/source/controller/main')
4 files changed, 9 insertions, 11 deletions
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx index 7df062fd08fe..8fe6db0bc39a 100644 --- a/chart2/source/controller/main/ChartController_Insert.cxx +++ b/chart2/source/controller/main/ChartController_Insert.cxx @@ -105,8 +105,8 @@ void ChartController::executeDispatch_InsertAxes() { InsertAxisOrGridDialogData aDialogInput; uno::Reference< XDiagram > xDiagram = ChartModelHelper::findDiagram(getModel()); - AxisHelper::getAxisOrGridExcistence( aDialogInput.aExistenceList, xDiagram, true ); - AxisHelper::getAxisOrGridPossibilities( aDialogInput.aPossibilityList, xDiagram, true ); + AxisHelper::getAxisOrGridExcistence( aDialogInput.aExistenceList, xDiagram ); + AxisHelper::getAxisOrGridPossibilities( aDialogInput.aPossibilityList, xDiagram ); SolarMutexGuard aGuard; ScopedVclPtrInstance<SchAxisDlg> aDlg( m_pChartWindow, aDialogInput ); diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index 7c44d85975da..9c1c7c4c1358 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -100,8 +100,7 @@ bool lcl_GrowAndShiftLogic( return ::chart::RelativePositionHelper::centerGrow( rInOutRelPos, rInOutRelSize, - fRelativeGrowX, fRelativeGrowY, - /* bCheck = */ true ); + fRelativeGrowX, fRelativeGrowY ); } bool lcl_MoveObjectLogic( @@ -120,8 +119,7 @@ bool lcl_MoveObjectLogic( return ::chart::RelativePositionHelper::moveObject( rInOutRelPos, rObjectSize, - fRelativeShiftX, fRelativeShiftY, - /* bCheck = */ true ); + fRelativeShiftX, fRelativeShiftY ); } void lcl_insertMenuCommand( @@ -795,14 +793,14 @@ void ChartController::execute_MouseButtonUp( const MouseEvent& rMEvt ) UndoGuard aUndoGuard( pChartDragMethod->getUndoDescription(), m_xUndoManager ); - if( pDrawViewWrapper->EndDragObj(false) ) + if( pDrawViewWrapper->EndDragObj() ) { bDraggingDone = true; aUndoGuard.commit(); } } - if( !bDraggingDone && pDrawViewWrapper->EndDragObj(false) ) + if( !bDraggingDone && pDrawViewWrapper->EndDragObj() ) { try { @@ -1020,7 +1018,7 @@ void ChartController::execute_Command( const CommandEvent& rCEvt ) Reference< chart2::XRegressionCurve > xTrendline( RegressionCurveHelper::getFirstCurveNotMeanValueLine( xCurveCnt ) ); bool bHasEquation = RegressionCurveHelper::hasEquation( xTrendline ); Reference< chart2::XRegressionCurve > xMeanValue( RegressionCurveHelper::getMeanValueLine( xCurveCnt ) ); - bool bHasYErrorBars = StatisticsHelper::hasErrorBars( xSeries, true ); + bool bHasYErrorBars = StatisticsHelper::hasErrorBars( xSeries ); bool bHasXErrorBars = StatisticsHelper::hasErrorBars( xSeries, false ); bool bHasDataLabelsAtSeries = DataSeriesHelper::hasDataLabelsAtSeries( xSeries ); bool bHasDataLabelsAtPoints = DataSeriesHelper::hasDataLabelsAtPoints( xSeries ); diff --git a/chart2/source/controller/main/ControllerCommandDispatch.cxx b/chart2/source/controller/main/ControllerCommandDispatch.cxx index e28fbe8c03dc..ea98429e3d51 100644 --- a/chart2/source/controller/main/ControllerCommandDispatch.cxx +++ b/chart2/source/controller/main/ControllerCommandDispatch.cxx @@ -258,7 +258,7 @@ void ControllerState::update( bMayFormatXErrorBars = bMayDeleteXErrorBars = StatisticsHelper::hasErrorBars( xGivenDataSeries, false ); bMayAddXErrorBars = ! bMayDeleteXErrorBars; - bMayFormatYErrorBars = bMayDeleteYErrorBars = StatisticsHelper::hasErrorBars( xGivenDataSeries, true ); + bMayFormatYErrorBars = bMayDeleteYErrorBars = StatisticsHelper::hasErrorBars( xGivenDataSeries ); bMayAddYErrorBars = ! bMayDeleteYErrorBars; } } diff --git a/chart2/source/controller/main/ObjectHierarchy.cxx b/chart2/source/controller/main/ObjectHierarchy.cxx index 9f5d5ed624ae..ff05b04b4ca5 100644 --- a/chart2/source/controller/main/ObjectHierarchy.cxx +++ b/chart2/source/controller/main/ObjectHierarchy.cxx @@ -313,7 +313,7 @@ void ImplObjectHierarchy::createAxesTree( lcl_ObjectToOID( xChartDoc )); // get all axes, also invisible ones - aAxes = AxisHelper::getAllAxesOfDiagram( xDiagram, /* bOnlyVisible = */ false ); + aAxes = AxisHelper::getAllAxesOfDiagram( xDiagram ); // Grids Reference< frame::XModel > xChartModel( xChartDoc, uno::UNO_QUERY ); for( sal_Int32 nA=0; nA<aAxes.getLength(); ++nA ) |