summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-01 14:06:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-01 14:41:27 +0100
commit9ecd848dc9467aef4f3d3d0f9b5c2e7086ae77d5 (patch)
tree05e59dfa285bc0e1cecc138901e6b2b6c717dd22 /xmloff
parent6f1e77fc600f776433a759172323b4afec3d811e (diff)
coverity#1325254 Unchecked dynamic_cast
Change-Id: I75f9f4cb4f32ae1836e1e6287fa5fce1aa83bdf5
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLTextFrameHyperlinkContext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
index fa346909fb32..a5cf7770bf97 100644
--- a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
+++ b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
@@ -164,7 +164,7 @@ Reference < drawing::XShape > XMLTextFrameHyperlinkContext::GetShape() const
if( xFrameContext.Is() )
{
SvXMLImportContext *pContext = &xFrameContext;
- xShape = dynamic_cast<XMLTextFrameContext*>( pContext )->GetShape( );
+ xShape = dynamic_cast<XMLTextFrameContext&>(*pContext).GetShape();
}
return xShape;