summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-11 11:06:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-11 11:21:12 +0100
commit4e0129e79946575741842506e3ac813399631756 (patch)
treed36571d8e301acf85ea6e538a153df2b16e8aafd /sfx2
parent39ae696f1e8db42f42a45c35b8f0200cf5e6354c (diff)
coverity#708157 Uninitialized scalar field
Change-Id: I9d798c8b6472241dc7d16e3d7b52653ad0d76654
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;
}