diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-21 13:32:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-21 16:11:48 +0100 |
commit | 897970cd0b9709258b6b5b5fc05dba2e74a72b7c (patch) | |
tree | 45bd0da067e508cd233ca959b4d8bb7317260416 /framework/source/helper/statusindicatorfactory.cxx | |
parent | 6b6f9fb71fa1bfcb438b89596e6f19529cfe1eba (diff) |
loplugin:refcounting in framework
Change-Id: I2d7d14fe0335689e4a338c70587bf33137ed1ddd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111279
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/helper/statusindicatorfactory.cxx')
-rw-r--r-- | framework/source/helper/statusindicatorfactory.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/framework/source/helper/statusindicatorfactory.cxx b/framework/source/helper/statusindicatorfactory.cxx index 62efba05933f..addda602667f 100644 --- a/framework/source/helper/statusindicatorfactory.cxx +++ b/framework/source/helper/statusindicatorfactory.cxx @@ -98,10 +98,7 @@ void SAL_CALL StatusIndicatorFactory::initialize(const css::uno::Sequence< css:: css::uno::Reference< css::task::XStatusIndicator > SAL_CALL StatusIndicatorFactory::createStatusIndicator() { - StatusIndicator* pIndicator = new StatusIndicator(this); - css::uno::Reference< css::task::XStatusIndicator > xIndicator(static_cast< ::cppu::OWeakObject* >(pIndicator), css::uno::UNO_QUERY_THROW); - - return xIndicator; + return new StatusIndicator(this); } void SAL_CALL StatusIndicatorFactory::update() @@ -391,8 +388,7 @@ void StatusIndicatorFactory::impl_createProgress() if (xWindow.is()) { // use vcl based progress implementation in plugged mode - VCLStatusIndicator* pVCLProgress = new VCLStatusIndicator(xWindow); - xProgress.set(static_cast< css::task::XStatusIndicator* >(pVCLProgress), css::uno::UNO_QUERY); + xProgress = new VCLStatusIndicator(xWindow); } else if (xFrame.is()) { |