diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-02 08:53:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-02 08:59:01 +0000 |
commit | 211925e144849ad14469a1a6c6451f61fcf369cf (patch) | |
tree | 80ac8abb90a3820b303b682f67009a35428d2ca7 /sc/source | |
parent | e0781244dacda54b3f30e8ddde708b25944f1344 (diff) |
coverity#1396676 Uninitialized pointer field
Change-Id: I7d7557485fe603f49ae176378ef41539ebe4970c
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/unoobj/styleuno.cxx | 11 |
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 |