diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 10:24:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-13 10:24:44 +0000 |
commit | 5d8449cd14aa3d08929bb25626ab54aa7515f47d (patch) | |
tree | 016c51cb08068c154581311d7f42cb010ec8d42a /lotuswordpro/source/filter/lwpfootnote.cxx | |
parent | cppcheck: fix memleak in win32/wintools/msidb/msidb.c (diff) | |
download | core-5d8449cd14aa3d08929bb25626ab54aa7515f47d.tar.gz core-5d8449cd14aa3d08929bb25626ab54aa7515f47d.zip |
need more dynamic casts here
Change-Id: Idf84ababeeb109a411c03a18d3a9aa6e136c7ef4
Diffstat (limited to 'lotuswordpro/source/filter/lwpfootnote.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpfootnote.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpfootnote.cxx b/lotuswordpro/source/filter/lwpfootnote.cxx index 49b608347701..0da512ee7edb 100644 --- a/lotuswordpro/source/filter/lwpfootnote.cxx +++ b/lotuswordpro/source/filter/lwpfootnote.cxx @@ -199,7 +199,7 @@ LwpCellLayout* LwpFootnote::GetCellLayout() LwpEnSuperTableLayout* pEnSuperLayout = FindFootnoteTableLayout(); if(pEnSuperLayout) { - LwpTableLayout* pTableLayout = static_cast<LwpTableLayout*>(pEnSuperLayout->GetMainTableLayout()); + LwpTableLayout* pTableLayout = dynamic_cast<LwpTableLayout*>(pEnSuperLayout->GetMainTableLayout()); if(pTableLayout) { LwpRowLayout* pRowLayout = pTableLayout->GetRowLayout(m_nRow); |