coverity#1325252 Unchecked dynamic_cast

Change-Id: I70b4c9f705d3da294e3b93f2834db5add9198ec9
This commit is contained in:
Caolán McNamara
2015-10-01 14:08:01 +01:00
parent d0ddb0c4a6
commit 42f39d25c7

View File

@@ -138,7 +138,7 @@ TextContentAnchorType XMLTextFrameHyperlinkContext::GetAnchorType() const
if( xFrameContext.Is() )
{
SvXMLImportContext *pContext = &xFrameContext;
return dynamic_cast<XMLTextFrameContext*>( pContext ) ->GetAnchorType( );
return dynamic_cast<XMLTextFrameContext&>(*pContext).GetAnchorType();
}
else
return eDefaultAnchorType;