diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-07 13:52:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-08 10:38:35 +0100 |
commit | 17dd2662ccfa9d04efbea74e5d7548db5b2126d4 (patch) | |
tree | 37c0de883c43a57f54b0a483437da9de3bf4c941 /chart2 | |
parent | 638be04c8334e5e29f9258ff870fbe63603ce7e0 (diff) |
convert "*xxx.get()" to "*xxx"
Change-Id: Ic307226591ff9702957ccdec486ccf70357eb6d9
Reviewed-on: https://gerrit.libreoffice.org/65951
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
8 files changed, 9 insertions, 9 deletions
diff --git a/chart2/source/controller/dialogs/ObjectNameProvider.cxx b/chart2/source/controller/dialogs/ObjectNameProvider.cxx index df7aee8ba8de..682b0ca96783 100644 --- a/chart2/source/controller/dialogs/ObjectNameProvider.cxx +++ b/chart2/source/controller/dialogs/ObjectNameProvider.cxx @@ -180,7 +180,7 @@ OUString lcl_getDataPointValueText( const Reference< XDataSeries >& xSeries, sal if( aX.isEmpty() ) { - ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartModel.get()); + ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartModel); aRet = ExplicitCategoriesProvider::getCategoryByIndex( xCooSys, rModel, nPointIndex ); } else diff --git a/chart2/source/controller/dialogs/res_LegendPosition.cxx b/chart2/source/controller/dialogs/res_LegendPosition.cxx index abe3f2688cec..494538ab4ede 100644 --- a/chart2/source/controller/dialogs/res_LegendPosition.cxx +++ b/chart2/source/controller/dialogs/res_LegendPosition.cxx @@ -122,7 +122,7 @@ void LegendPositionResources::writeToModel( const css::uno::Reference< frame::XM try { bool bShowLegend = m_xCbxShow && m_xCbxShow->get_active(); - ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartModel.get()); + ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartModel); uno::Reference< beans::XPropertySet > xProp(LegendHelper::getLegend(rModel, m_xCC, bShowLegend), uno::UNO_QUERY); if( xProp.is() ) { diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 07eb6692a5d6..8484fa347bff 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -1315,7 +1315,7 @@ void ChartController::executeDispatch_SourceData() // If there is a data table we should ask user if we really want to destroy it // and switch to data ranges. - ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartDoc.get()); + ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartDoc); if ( rModel.hasInternalDataProvider() ) { // Check if we will able to create data provider later diff --git a/chart2/source/controller/main/ChartController_Tools.cxx b/chart2/source/controller/main/ChartController_Tools.cxx index 7cfc51c83bc0..23eb9ab0b349 100644 --- a/chart2/source/controller/main/ChartController_Tools.cxx +++ b/chart2/source/controller/main/ChartController_Tools.cxx @@ -819,7 +819,7 @@ void ChartController::executeDispatch_ToggleLegend() Reference< frame::XModel > xModel( getModel() ); UndoGuard aUndoGuard( SchResId( STR_ACTION_TOGGLE_LEGEND ), m_xUndoManager ); - ChartModel& rModel = dynamic_cast<ChartModel&>(*xModel.get()); + ChartModel& rModel = dynamic_cast<ChartModel&>(*xModel); Reference< beans::XPropertySet > xLegendProp( LegendHelper::getLegend(rModel), uno::UNO_QUERY ); bool bChanged = false; if( xLegendProp.is()) diff --git a/chart2/source/controller/main/ControllerCommandDispatch.cxx b/chart2/source/controller/main/ControllerCommandDispatch.cxx index 07e99c5c6477..4b97e5bbdc47 100644 --- a/chart2/source/controller/main/ControllerCommandDispatch.cxx +++ b/chart2/source/controller/main/ControllerCommandDispatch.cxx @@ -412,7 +412,7 @@ void ModelState::update( const Reference< frame::XModel > & xModel ) bIsThreeD = (nDimensionCount == 3); if (xChartDoc.is()) { - ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartDoc.get()); + ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartDoc); bHasOwnData = rModel.hasInternalDataProvider(); bHasDataFromPivotTable = !bHasOwnData && rModel.isDataFromPivotTable(); } @@ -551,7 +551,7 @@ void ControllerCommandDispatch::updateCommandAvailability() OSL_ENSURE(xChartDoc.is(), "Invalid XChartDocument"); if ( xChartDoc.is() ) { - ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartDoc.get()); + ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartDoc); Reference< lang::XServiceInfo > xParentServiceInfo(rModel.getParent(), uno::UNO_QUERY); OSL_ENSURE(xParentServiceInfo.is(), "Invalid XServiceInfo"); if ( xParentServiceInfo.is() ) diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx index 72ebb2b8d059..a919375a7a85 100644 --- a/chart2/source/tools/InternalDataProvider.cxx +++ b/chart2/source/tools/InternalDataProvider.cxx @@ -340,7 +340,7 @@ InternalDataProvider::InternalDataProvider( { vector< vector< uno::Any > > aNewCategories;//inner count is level { - ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartModel.get()); + ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartModel); ExplicitCategoriesProvider aExplicitCategoriesProvider(ChartModelHelper::getFirstCoordinateSystem(xChartModel), rModel); const Sequence< Reference< chart2::data::XLabeledDataSequence> >& rSplitCategoriesList( aExplicitCategoriesProvider.getSplitCategoriesList() ); diff --git a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx index c46d8d0b44ad..f8cfe828d0ae 100644 --- a/chart2/source/view/axes/VCartesianCoordinateSystem.cxx +++ b/chart2/source/view/axes/VCartesianCoordinateSystem.cxx @@ -102,7 +102,7 @@ void VCartesianCoordinateSystem::createVAxisList( // note: using xChartDoc itself as XNumberFormatsSupplier would cause // a leak from VCartesianAxis due to cyclic reference uno::Reference<util::XNumberFormatsSupplier> const xNumberFormatsSupplier( - dynamic_cast<ChartModel&>(*xChartDoc.get()).getNumberFormatsSupplier()); + dynamic_cast<ChartModel&>(*xChartDoc).getNumberFormatsSupplier()); m_aAxisMap.clear(); diff --git a/chart2/source/view/axes/VPolarCoordinateSystem.cxx b/chart2/source/view/axes/VPolarCoordinateSystem.cxx index e5ab2b50eb6c..1fee84175444 100644 --- a/chart2/source/view/axes/VPolarCoordinateSystem.cxx +++ b/chart2/source/view/axes/VPolarCoordinateSystem.cxx @@ -73,7 +73,7 @@ void VPolarCoordinateSystem::createVAxisList( // note: using xChartDoc itself as XNumberFormatsSupplier would cause // a leak from VPolarAxis due to cyclic reference uno::Reference<util::XNumberFormatsSupplier> const xNumberFormatsSupplier( - dynamic_cast<ChartModel&>(*xChartDoc.get()).getNumberFormatsSupplier()); + dynamic_cast<ChartModel&>(*xChartDoc).getNumberFormatsSupplier()); m_aAxisMap.clear(); sal_Int32 nDimensionCount = m_xCooSysModel->getDimension(); |