summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-02 08:53:34 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-02 08:59:01 +0000
commit211925e144849ad14469a1a6c6451f61fcf369cf (patch)
tree80ac8abb90a3820b303b682f67009a35428d2ca7
parente0781244dacda54b3f30e8ddde708b25944f1344 (diff)
coverity#1396676 Uninitialized pointer field
Change-Id: I7d7557485fe603f49ae176378ef41539ebe4970c
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx
index d12373484ded..1a6e8e90859a 100644
--- a/sc/source/ui/unoobj/styleuno.cxx
+++ b/sc/source/ui/unoobj/styleuno.cxx
@@ -943,11 +943,12 @@ void SAL_CALL ScStyleFamilyObj::removeVetoableChangeListener( const OUString&, c
// Default-ctor wird fuer die Reflection gebraucht
-ScStyleObj::ScStyleObj(ScDocShell* pDocSh, SfxStyleFamily eFam, const OUString& rName) :
- pPropSet( (eFam == SfxStyleFamily::Para) ? lcl_GetCellStyleSet() : lcl_GetPageStyleSet() ),
- pDocShell( pDocSh ),
- eFamily( eFam ),
- aStyleName( rName )
+ScStyleObj::ScStyleObj(ScDocShell* pDocSh, SfxStyleFamily eFam, const OUString& rName)
+ : pPropSet( (eFam == SfxStyleFamily::Para) ? lcl_GetCellStyleSet() : lcl_GetPageStyleSet() )
+ , pDocShell(pDocSh)
+ , eFamily(eFam)
+ , aStyleName(rName)
+ , pStyle_cached(nullptr)
{
// pDocShell ist Null, wenn per ServiceProvider erzeugt