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/lwpnotes.cxx | |
parent | 25632b8ffe53dd18faaab2f5c019f7a401ebf579 (diff) |
check all obj().get() casts with dynamic_cast
Change-Id: I763aa5874d0c1f977decff88414eea6247f96405
Diffstat (limited to 'lotuswordpro/source/filter/lwpnotes.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpnotes.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpnotes.cxx b/lotuswordpro/source/filter/lwpnotes.cxx index e203d42ae113..1da5922cf07e 100644 --- a/lotuswordpro/source/filter/lwpnotes.cxx +++ b/lotuswordpro/source/filter/lwpnotes.cxx @@ -214,10 +214,10 @@ OUString LwpNoteLayout::GetAuthor() LwpNoteHeaderLayout* pTextLayout = static_cast<LwpNoteHeaderLayout*>(FindChildByType(LWP_NOTEHEADER_LAYOUT)); if(pTextLayout) { - LwpStory* pStory = static_cast<LwpStory*>(pTextLayout->GetContent().obj().get()); + LwpStory* pStory = dynamic_cast<LwpStory*>(pTextLayout->GetContent().obj().get()); if(pStory) { - LwpPara* pFirst = static_cast<LwpPara*>(pStory->GetFirstPara().obj().get()); + LwpPara* pFirst = dynamic_cast<LwpPara*>(pStory->GetFirstPara().obj().get()); if(pFirst) return pFirst->GetContentText(true); } |