summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-01 14:07:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-01 14:41:27 +0100
commitd0ddb0c4a6aa4f65f45c6cbfbc2fa409720af53a (patch)
treedc0ed6ad759a6419318653fb30b84eb97a8a514c /xmloff
parent9ecd848dc9467aef4f3d3d0f9b5c2e7086ae77d5 (diff)
coverity#1325253 Unchecked dynamic_cast
Change-Id: I7151f641ce87fa7ca11af4f0cef6594edb925f91
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 a5cf7770bf97..63f098495bf4 100644
--- a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
+++ b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx
@@ -151,7 +151,7 @@ Reference < XTextContent > XMLTextFrameHyperlinkContext::GetTextContent() const
if( xFrameContext.Is() )
{
SvXMLImportContext *pContext = &xFrameContext;
- xTxt = dynamic_cast<XMLTextFrameContext*>( pContext )->GetTextContent( );
+ xTxt = dynamic_cast<XMLTextFrameContext&>(*pContext).GetTextContent();
}
return xTxt;