diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 10:26:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-12 13:03:57 +0000 |
commit | 17fd9447264fd75fe990e40e5faab42c9720504c (patch) | |
tree | 70f00b0f8affd5462ae5a22ee08e5a8b0cfd0053 /sfx2 | |
parent | 655514515794d221955c75510b261210a0d4a3ca (diff) |
coverity#708164 Uninitialized scalar field
Change-Id: I7de5d34dc2964f91cb4daa0eb754f9ad02e83667
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/inc/templdgi.hxx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index 3520a5b4efa4..68da5bcb09b7 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -58,14 +58,19 @@ private: protected: SfxCommonTemplateDialog_Impl* pDialog; - sal_uInt16 nModifier; + sal_uInt16 nModifier; public: - DropListBox_Impl( Window* pParent, const ResId& rId, SfxCommonTemplateDialog_Impl* pD ) : - SvTreeListBox( pParent, rId ), pDialog( pD ) {} - DropListBox_Impl( Window* pParent, WinBits nWinBits, SfxCommonTemplateDialog_Impl* pD ) : - SvTreeListBox( pParent, nWinBits ), pDialog( pD ) {} - + DropListBox_Impl( Window* pParent, const ResId& rId, SfxCommonTemplateDialog_Impl* pD ) + : SvTreeListBox(pParent, rId) + , pDialog(pD) + , nModifier(0) + {} + DropListBox_Impl( Window* pParent, WinBits nWinBits, SfxCommonTemplateDialog_Impl* pD ) + : SvTreeListBox(pParent, nWinBits) + , pDialog(pD) + , nModifier(0) + {} virtual void MouseButtonDown( const MouseEvent& rMEvt ); virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ); using SvTreeListBox::ExecuteDrop; |