summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-05-04 21:21:29 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-05-04 21:29:56 +0200
commitd6c42a503fb4237d5aa86eece3bf1fc1fba87a4b (patch)
treefaffac8a5a1da3fbe32bca66d18724cb59d6c0e1 /sw
parentda47a7d239fe9b27aa84cd5716e9f7430814beab (diff)
coverity#1038298 Unchecked dynamic_cast
Change-Id: Ibb2eca48edb30a88b1ab4bcc35e7e5852efbb436
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/access/accpara.cxx4
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
{