diff options
author | Vasily Melenchuk <Vasily.Melenchuk@cib.de> | 2018-01-12 13:27:08 +0300 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-01-13 22:39:43 +0100 |
commit | d28e10b095b4ee0986fbe86170928bf077da04b9 (patch) | |
tree | bd0f37d6f933c80c4f162d08a6a23bafa3b322a0 /chart2 | |
parent | 315be3a276b01e88c794da1dbc6252a8b803d269 (diff) |
Replacing newly written deprecated OSL_ENSURE by SAL_WARN_IF.
It was mentioned at https://gerrit.libreoffice.org/44605 but that patch
was already merged.
Change-Id: I0b75bb3d23406d7e25fe4c0e0a2f26f3e69d37c5
Reviewed-on: https://gerrit.libreoffice.org/47811
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index 430c560dead2..b2b8dbdc9720 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -1359,12 +1359,12 @@ void ChartController::executeDispatch_SourceData() // Ask parent document to create new data provider css::uno::Reference< com::sun::star::chart2::XDataProviderAccess > xCreatorDoc( rModel.getParent(), uno::UNO_QUERY ); - OSL_ENSURE( xCreatorDoc.is(), "Invalid XDataProviderAccess" ); + SAL_WARN_IF( !xCreatorDoc.is(), "chart2.main", "Invalid XDataProviderAccess" ); if ( xCreatorDoc.is() ) { uno::Reference< data::XDataProvider > xDataProvider = xCreatorDoc->createDataProvider(); - OSL_ENSURE( xCreatorDoc.is(), "Data provider was not created" ); + SAL_WARN_IF( !xDataProvider.is(), "chart2.main", "Data provider was not created" ); if ( xDataProvider.is() ) { rModel.attachDataProvider(xDataProvider); |