From 6a85925841feffdefead52ba35acd3379c8aa8ce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 10 Sep 2018 09:20:08 +0200 Subject: loplugin:simplifyconstruct in scaddins..sd Change-Id: Ia2c04ef9fe5113b8b04304d0f495b948b5371fb4 Reviewed-on: https://gerrit.libreoffice.org/60237 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/unoidl/DrawController.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sd/source/ui/unoidl/DrawController.cxx') 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 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 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; -- cgit