diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/inc/sectfrm.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/layout/sectfrm.cxx | 13 |
2 files changed, 10 insertions, 5 deletions
diff --git a/sw/source/core/inc/sectfrm.hxx b/sw/source/core/inc/sectfrm.hxx index f9a080513867..9bbe9f943420 100644 --- a/sw/source/core/inc/sectfrm.hxx +++ b/sw/source/core/inc/sectfrm.hxx @@ -71,7 +71,7 @@ protected: public: SwSectionFrm( SwSection &, SwFrm* ); //Inhalt wird nicht erzeugt! SwSectionFrm( SwSectionFrm &, sal_Bool bMaster );//_Nur_ zum Erzeugen von Master/Follows - ~SwSectionFrm(); + virtual ~SwSectionFrm(); void Init(); virtual void CheckDirection( sal_Bool bVert ); diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx index ef1f3793fcb5..63f2bbdaa1c2 100644 --- a/sw/source/core/layout/sectfrm.cxx +++ b/sw/source/core/layout/sectfrm.cxx @@ -71,10 +71,15 @@ SV_IMPL_PTRARR_SORT( SwDestroyList, SwSectionFrmPtr ) |* SwSectionFrm::SwSectionFrm(), ~SwSectionFrm() |* |*************************************************************************/ -SwSectionFrm::SwSectionFrm( SwSection &rSect, SwFrm* pSib ) : - SwLayoutFrm( rSect.GetFmt(), pSib ), - SwFlowFrm( (SwFrm&)*this ), - pSection( &rSect ) +SwSectionFrm::SwSectionFrm( SwSection &rSect, SwFrm* pSib ) + : SwLayoutFrm( rSect.GetFmt(), pSib ) + , SwFlowFrm( static_cast<SwFrm&>(*this) ) + , pSection( &rSect ) + , bFtnAtEnd(false) + , bEndnAtEnd(false) + , bCntntLock(false) + , bOwnFtnNum(false) + , bFtnLock(false) { nType = FRMC_SECTION; |