From 0d051730156f633150fa9e3107fe97cf7be6d8f9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 15 Nov 2016 09:13:33 +0200 Subject: loplugin:constantparam Change-Id: Iced8ff99d52d55e6b6c3126affafbea6786e94f0 Reviewed-on: https://gerrit.libreoffice.org/30858 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/control/dispatch.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2/source') diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 80936ae91a69..71cd48bd5466 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -418,7 +418,7 @@ void SfxDispatcher::Call_Impl(SfxShell& rShell, const SfxSlot &rSlot, SfxRequest } } -void SfxDispatcher::Construct_Impl( SfxDispatcher* pParent ) +void SfxDispatcher::Construct_Impl() { xImp.reset(new SfxDispatcher_Impl); xImp->bFlushed = true; @@ -438,7 +438,7 @@ void SfxDispatcher::Construct_Impl( SfxDispatcher* pParent ) xImp->pFilterSIDs = nullptr; xImp->nDisableFlags = 0; - xImp->pParent = pParent; + xImp->pParent = nullptr; xImp->bInvalidateOnUnlock = false; @@ -455,7 +455,7 @@ void SfxDispatcher::Construct_Impl( SfxDispatcher* pParent ) SfxDispatcher::SfxDispatcher() { - Construct_Impl( nullptr ); + Construct_Impl(); xImp->pFrame = nullptr; } @@ -464,7 +464,7 @@ SfxDispatcher::SfxDispatcher() */ SfxDispatcher::SfxDispatcher(SfxViewFrame *pViewFrame) { - Construct_Impl( nullptr ); + Construct_Impl(); xImp->pFrame = pViewFrame; } -- cgit v1.2.3