From d1ea4db02dac313a9836b26f05f00e9a34b25600 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 1 Aug 2018 16:12:42 +0200 Subject: loplugin:returnconstant in chart2 Change-Id: If44096ccf8d176023a1b7b8ae722e04417e4c131 Reviewed-on: https://gerrit.libreoffice.org/58425 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/model/main/ChartModel.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'chart2/source/model/main') diff --git a/chart2/source/model/main/ChartModel.cxx b/chart2/source/model/main/ChartModel.cxx index 2560796e6c61..c69fea24182f 100644 --- a/chart2/source/model/main/ChartModel.cxx +++ b/chart2/source/model/main/ChartModel.cxx @@ -631,12 +631,7 @@ void SAL_CALL ChartModel::close( sal_Bool bDeliverOwnership ) "the model itself could not be closed", static_cast< ::cppu::OWeakObject* >(this) ); - if( m_aLifeTimeManager.g_close_isNeedToCancelLongLastingCalls( bDeliverOwnership, aVetoException ) ) - { - m_aLifeTimeManager.g_close_endTryClose( bDeliverOwnership ); - throw aVetoException; - } - + m_aLifeTimeManager.g_close_isNeedToCancelLongLastingCalls( bDeliverOwnership, aVetoException ); } m_aLifeTimeManager.g_close_endTryClose_doClose(); -- cgit