Kaydet (Commit) 42f39d25 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1325252 Unchecked dynamic_cast

Change-Id: I70b4c9f705d3da294e3b93f2834db5add9198ec9
üst d0ddb0c4
...@@ -138,7 +138,7 @@ TextContentAnchorType XMLTextFrameHyperlinkContext::GetAnchorType() const ...@@ -138,7 +138,7 @@ TextContentAnchorType XMLTextFrameHyperlinkContext::GetAnchorType() const
if( xFrameContext.Is() ) if( xFrameContext.Is() )
{ {
SvXMLImportContext *pContext = &xFrameContext; SvXMLImportContext *pContext = &xFrameContext;
return dynamic_cast<XMLTextFrameContext*>( pContext ) ->GetAnchorType( ); return dynamic_cast<XMLTextFrameContext&>(*pContext).GetAnchorType();
} }
else else
return eDefaultAnchorType; return eDefaultAnchorType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment