diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-04 21:21:29 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-04 21:29:56 +0200 |
commit | d6c42a503fb4237d5aa86eece3bf1fc1fba87a4b (patch) | |
tree | faffac8a5a1da3fbe32bca66d18724cb59d6c0e1 /sw | |
parent | da47a7d239fe9b27aa84cd5716e9f7430814beab (diff) |
coverity#1038298 Unchecked dynamic_cast
Change-Id: Ibb2eca48edb30a88b1ab4bcc35e7e5852efbb436
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 3ed00c6dbbd5..9f69d01eec80 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -1870,9 +1870,9 @@ void SwAccessibleParagraph::_getDefaultAttributesImpl( break; } - if ( dynamic_cast<const SwFlyFrm*>(pUpperFrm) ) + if ( const SwFlyFrm* pFlyFrm = dynamic_cast<const SwFlyFrm*>(pUpperFrm) ) { - pUpperFrm = dynamic_cast<const SwFlyFrm*>(pUpperFrm)->GetAnchorFrm(); + pUpperFrm = pFlyFrm->GetAnchorFrm(); } else { |