From d3c7c9ea81ee7c617f8cee5b645621088aea215b Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Mon, 28 Sep 2015 11:42:43 +0200 Subject: tdf#94559: first step to remove rtti.hxx replaced use of PTR_CAST, IS_TYPE, ISA in avmedia, basctl, basic, cui, dbaccess, vcl,xmloff Change-Id: If4496762e82e896b6fbc362e6626502703c245f5 Reviewed-on: https://gerrit.libreoffice.org/18905 Tested-by: Jenkins Reviewed-by: Oliver Specht --- xmloff/source/text/XMLTextFrameHyperlinkContext.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmloff/source/text/XMLTextFrameHyperlinkContext.cxx') diff --git a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx index 1e76bd351ec4..fa346909fb32 100644 --- a/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx +++ b/xmloff/source/text/XMLTextFrameHyperlinkContext.cxx @@ -138,7 +138,7 @@ TextContentAnchorType XMLTextFrameHyperlinkContext::GetAnchorType() const if( xFrameContext.Is() ) { SvXMLImportContext *pContext = &xFrameContext; - return PTR_CAST( XMLTextFrameContext, pContext ) ->GetAnchorType(); + return dynamic_cast( pContext ) ->GetAnchorType( ); } else return eDefaultAnchorType; @@ -151,7 +151,7 @@ Reference < XTextContent > XMLTextFrameHyperlinkContext::GetTextContent() const if( xFrameContext.Is() ) { SvXMLImportContext *pContext = &xFrameContext; - xTxt = PTR_CAST( XMLTextFrameContext, pContext )->GetTextContent(); + xTxt = dynamic_cast( pContext )->GetTextContent( ); } return xTxt; @@ -164,7 +164,7 @@ Reference < drawing::XShape > XMLTextFrameHyperlinkContext::GetShape() const if( xFrameContext.Is() ) { SvXMLImportContext *pContext = &xFrameContext; - xShape = PTR_CAST( XMLTextFrameContext, pContext )->GetShape(); + xShape = dynamic_cast( pContext )->GetShape( ); } return xShape; -- cgit