diff options
-rw-r--r-- | xmloff/source/text/txtparaimphint.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xmloff/source/text/txtparaimphint.hxx b/xmloff/source/text/txtparaimphint.hxx index 7d58e65addd4..78b7cdde8482 100644 --- a/xmloff/source/text/txtparaimphint.hxx +++ b/xmloff/source/text/txtparaimphint.hxx @@ -230,14 +230,12 @@ public: { bool bRet = false; SvXMLImportContext *pContext = &xContext; - if( 0 != dynamic_cast<const XMLTextFrameContext*>(pContext) ) + if (XMLTextFrameContext *pFrameContext = dynamic_cast<XMLTextFrameContext*>(pContext)) bRet = css::text::TextContentAnchorType_AT_CHARACTER == - dynamic_cast<const XMLTextFrameContext*>( pContext ) - ->GetAnchorType(); - else if( 0 != dynamic_cast<const XMLTextFrameHyperlinkContext*>( pContext) ) + pFrameContext->GetAnchorType(); + else if (XMLTextFrameHyperlinkContext *pLinkContext = dynamic_cast<XMLTextFrameHyperlinkContext*>(pContext)) bRet = css::text::TextContentAnchorType_AT_CHARACTER == - dynamic_cast<const XMLTextFrameHyperlinkContext*>( pContext ) - ->GetAnchorType(); + pLinkContext->GetAnchorType(); return bRet; } }; |