diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-04-11 21:19:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-04-11 21:41:57 +0100 |
commit | d2a1c2d4cfa51b6ee8a7f38baa258633fae9ec6d (patch) | |
tree | ab712bc1a814bfc15def9990df0896436f346628 /lotuswordpro/source/filter/lwpfootnote.cxx | |
parent | not useful dates in source code removed (diff) | |
download | core-d2a1c2d4cfa51b6ee8a7f38baa258633fae9ec6d.tar.gz core-d2a1c2d4cfa51b6ee8a7f38baa258633fae9ec6d.zip |
fix what there is to fix
Diffstat (limited to 'lotuswordpro/source/filter/lwpfootnote.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpfootnote.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lotuswordpro/source/filter/lwpfootnote.cxx b/lotuswordpro/source/filter/lwpfootnote.cxx index e366bccbc10c..985e3f2b1532 100644 --- a/lotuswordpro/source/filter/lwpfootnote.cxx +++ b/lotuswordpro/source/filter/lwpfootnote.cxx @@ -141,7 +141,7 @@ void LwpFribFootnote::XFConvert(XFContentContainer* pCont) */ LwpFootnote* LwpFribFootnote::GetFootnote() { - return static_cast<LwpFootnote*>(m_Footnote.obj()); + return dynamic_cast<LwpFootnote*>(m_Footnote.obj()); } @@ -211,7 +211,7 @@ LwpCellLayout* LwpFootnote::GetCellLayout() LwpRowLayout* pRowLayout = pTableLayout->GetRowLayout(m_nRow); if(pRowLayout) { - return static_cast<LwpCellLayout*>(pRowLayout->GetChildHead()->obj()); + return dynamic_cast<LwpCellLayout*>(pRowLayout->GetChildHead()->obj()); } } } @@ -410,7 +410,7 @@ LwpTable* LwpFootnote::GetFootnoteTable(LwpEnSuperTableLayout * pLayout) { LwpEndnoteLayout* pEndnoteLayout = static_cast<LwpEndnoteLayout*>(pLayout->GetMainTableLayout()); if(pEndnoteLayout) - return static_cast<LwpTable*>(pEndnoteLayout->GetContent()->obj()); + return dynamic_cast<LwpTable*>(pEndnoteLayout->GetContent()->obj()); } return NULL; } @@ -420,7 +420,7 @@ LwpTable* LwpFootnote::GetFootnoteTable(LwpEnSuperTableLayout * pLayout) */ LwpContent* LwpFootnote::FindFootnoteContent() { - LwpContent* pContent = static_cast<LwpContent*>(m_Content.obj()); + LwpContent* pContent = dynamic_cast<LwpContent*>(m_Content.obj()); //if the content has layout, the content has footnote contents; //or looking for the celllayout and return the footnote contents. if(pContent && pContent->GetLayout(NULL)) @@ -429,7 +429,7 @@ LwpContent* LwpFootnote::FindFootnoteContent() LwpCellLayout* pCellLayout = GetCellLayout(); if(pCellLayout) { - pContent =static_cast<LwpContent*>(pCellLayout->GetContent()->obj()); + pContent = dynamic_cast<LwpContent*>(pCellLayout->GetContent()->obj()); } return pContent; |