summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/shell.cxx23
1 files changed, 12 insertions, 11 deletions
diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx
index 9c741c852165..25b907935d07 100644
--- a/sfx2/source/control/shell.cxx
+++ b/sfx2/source/control/shell.cxx
@@ -94,7 +94,18 @@ struct SfxShell_Impl: public SfxBroadcaster
com::sun::star::uno::Sequence < com::sun::star::embed::VerbDescriptor > aVerbList;
::sfx2::sidebar::ContextChangeBroadcaster maContextChangeBroadcaster;
- SfxShell_Impl() : pViewSh(0), pFrame(0), pRepeatTarget(0), pExecuter(0), pUpdater(0) {}
+ SfxShell_Impl()
+ : pViewSh(0)
+ , pFrame(0)
+ , pRepeatTarget(0)
+ , bActive(false)
+ , nDisableFlags(0)
+ , nHelpId(0)
+ , pExecuter(0)
+ , pUpdater(0)
+ {
+ }
+
virtual ~SfxShell_Impl() { delete pExecuter; delete pUpdater;}
};
@@ -124,12 +135,6 @@ SfxShell::SfxShell()
pUndoMgr(0)
{
pImp = new SfxShell_Impl;
- pImp->pViewSh = 0;
- pImp->pFrame = 0;
- pImp->pRepeatTarget = 0;
- pImp->nHelpId = 0L;
- pImp->bActive = false;
- pImp->nDisableFlags = 0;
}
@@ -149,10 +154,6 @@ SfxShell::SfxShell( SfxViewShell *pViewSh )
{
pImp = new SfxShell_Impl;
pImp->pViewSh = pViewSh;
- pImp->pFrame = 0;
- pImp->pRepeatTarget = 0;
- pImp->nHelpId = 0L;
- pImp->bActive = false;
}