summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/DrawController.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-10 09:20:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-10 11:03:26 +0200
commit6a85925841feffdefead52ba35acd3379c8aa8ce (patch)
treee7db67e138cdb226d3ef345dff96ae29fa429c93 /sd/source/ui/unoidl/DrawController.cxx
parent66838c2418df4d016be0da0ef1c7e54934c03421 (diff)
loplugin:simplifyconstruct in scaddins..sd
Change-Id: Ia2c04ef9fe5113b8b04304d0f495b948b5371fb4 Reviewed-on: https://gerrit.libreoffice.org/60237 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/unoidl/DrawController.cxx')
-rw-r--r--sd/source/ui/unoidl/DrawController.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx
index 97305d9183c8..915c804ff91e 100644
--- a/sd/source/ui/unoidl/DrawController.cxx
+++ b/sd/source/ui/unoidl/DrawController.cxx
@@ -669,7 +669,7 @@ uno::Reference< form::runtime::XFormController > SAL_CALL DrawController::getFor
std::shared_ptr<ViewShell> pViewShell = mpBase->GetMainViewShell();
::sd::Window* pWindow = pViewShell ? pViewShell->GetActiveWindow() : nullptr;
- uno::Reference< form::runtime::XFormController > xController( nullptr );
+ uno::Reference< form::runtime::XFormController > xController;
if ( pFormShell && pSdrView && pWindow )
xController = FmFormShell::GetFormController( Form, *pSdrView, *pWindow );
return xController;
@@ -706,7 +706,7 @@ uno::Reference< awt::XControl > SAL_CALL DrawController::getControl( const uno::
std::shared_ptr<ViewShell> pViewShell = mpBase->GetMainViewShell();
::sd::Window* pWindow = pViewShell ? pViewShell->GetActiveWindow() : nullptr;
- uno::Reference< awt::XControl > xControl( nullptr );
+ uno::Reference< awt::XControl > xControl;
if ( pFormShell && pSdrView && pWindow )
pFormShell->GetFormControl( xModel, *pSdrView, *pWindow, xControl );
return xControl;