summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-10 14:35:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-10 21:12:59 +0100
commit6f57a7b93467f0da7be4d22020dfe09d9331d00f (patch)
tree8ba46d5753b5cfc1edd5c6a8ba551a14d5ce6ee0 /sfx2
parent5fe41a6113c03becb38a63f5fb1aa8f040d7b815 (diff)
coverity#1028545 Uninitialized pointer field
Change-Id: Idd4e1497737b8afb5eda283fe82754346f98814d
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/templdlg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index a5597e881e8f..fd6b5ef1aa90 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -783,6 +783,7 @@ SfxCommonTemplateDialog_Impl::SfxCommonTemplateDialog_Impl( SfxBindings* pB, Win
pModule ( NULL ),
pTimer ( NULL ),
m_pStyleFamiliesId ( NULL ),
+ pStyleFamilies ( NULL ),
pStyleSheetPool ( NULL ),
pTreeBox ( NULL ),
pCurObjShell ( NULL ),
@@ -821,9 +822,10 @@ SfxCommonTemplateDialog_Impl::SfxCommonTemplateDialog_Impl( SfxBindings* pB, Win
Font aFont = aFmtLb.GetFont();
aFont.SetWeight( WEIGHT_NORMAL );
aFmtLb.SetFont( aFont );
-}
-
+ memset(pBoundItems, 0, sizeof(pBoundItems));
+ memset(pFamilyState, 0, sizeof(pFamilyState));
+}
sal_uInt16 SfxCommonTemplateDialog_Impl::StyleNrToInfoOffset(sal_uInt16 nId)
{
@@ -831,8 +833,6 @@ sal_uInt16 SfxCommonTemplateDialog_Impl::StyleNrToInfoOffset(sal_uInt16 nId)
return SfxFamilyIdToNId(pItem->GetFamily())-1;
}
-
-
void SfxTemplateDialog_Impl::EnableEdit(bool bEnable)
{
SfxCommonTemplateDialog_Impl::EnableEdit( bEnable );