diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-12 21:20:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-12 21:20:40 +0000 |
commit | 411dc2058d222a5c2f9b8b159b9384086c9219a5 (patch) | |
tree | 473404f1c45f8485ffd98e1e7b0df03652a44fcb /lotuswordpro/source/filter/lwpfribbreaks.cxx | |
parent | this cast needs to be dynamic (diff) | |
download | core-411dc2058d222a5c2f9b8b159b9384086c9219a5.tar.gz core-411dc2058d222a5c2f9b8b159b9384086c9219a5.zip |
check all obj().get() casts with dynamic_cast
Change-Id: I763aa5874d0c1f977decff88414eea6247f96405
Diffstat (limited to 'lotuswordpro/source/filter/lwpfribbreaks.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpfribbreaks.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwpfribbreaks.cxx b/lotuswordpro/source/filter/lwpfribbreaks.cxx index fa94993cacb1..6538d68cbc76 100644 --- a/lotuswordpro/source/filter/lwpfribbreaks.cxx +++ b/lotuswordpro/source/filter/lwpfribbreaks.cxx @@ -77,9 +77,6 @@ void LwpFribColumnBreak::RegisterBreakStyle(LwpPara * pPara) *pOverStyle = *pBaseStyle; pOverStyle->SetStyleName(""); - //Old code - //if (static_cast<LwpStory*>(pPara->GetStoryID()->obj()) - // ->GetCurrentLayout()->GetNumCols() == 1) //New code LwpStory* pStory = dynamic_cast<LwpStory*>(pPara->GetStoryID().obj().get()); LwpPageLayout* pCurLayout = pStory ? pStory->GetCurrentLayout() : nullptr; |