summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtparaimphint.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/text/txtparaimphint.hxx b/xmloff/source/text/txtparaimphint.hxx
index a46ad8bbc96f..a447fd71846d 100644
--- a/xmloff/source/text/txtparaimphint.hxx
+++ b/xmloff/source/text/txtparaimphint.hxx
@@ -219,10 +219,10 @@ public:
{
css::uno::Reference < css::drawing::XShape > xShape;
SvXMLImportContext *pContext = &xContext;
- if( 0 != dynamic_cast<const XMLTextFrameContext*>(pContext) )
- xShape = dynamic_cast< XMLTextFrameContext*>( pContext )->GetShape();
- else if( 0 != dynamic_cast<const XMLTextFrameHyperlinkContext*>(pContext) )
- xShape = dynamic_cast<XMLTextFrameHyperlinkContext*>( pContext )->GetShape();
+ if (XMLTextFrameContext *pFrameContext = dynamic_cast<XMLTextFrameContext*>(pContext) )
+ xShape = pFrameContext->GetShape();
+ else if(XMLTextFrameHyperlinkContext *pLinkContext = dynamic_cast<XMLTextFrameHyperlinkContext*>(pContext))
+ xShape = pLinkContext->GetShape();
return xShape;
}