From 85f93697defd9a812a0cda0bc4e9364e28c0339e Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Tue, 29 Sep 2015 15:35:28 +0200 Subject: tdf#94559: third step to remove rtti.hxx replaced use of PTR_CAST, IS_TYPE, ISA in oox, reportdesign, svl, svtools, svx, tools Change-Id: I1f85ff92267a0668eba625fa61b4f07feb8f3d4e Reviewed-on: https://gerrit.libreoffice.org/19002 Tested-by: Jenkins Reviewed-by: Oliver Specht --- svtools/source/misc/ehdl.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'svtools') diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx index 11a8672dae51..9e058f5c3153 100644 --- a/svtools/source/misc/ehdl.cxx +++ b/svtools/source/misc/ehdl.cxx @@ -176,7 +176,7 @@ bool SfxErrorHandler::CreateString( sal_uLong nErrCode = pErr->GetErrorCode() & ERRCODE_ERROR_MASK; if( nErrCode>=lEnd || nErrCode<=lStart ) return false; - const MessageInfo *pMsgInfo = PTR_CAST(MessageInfo,pErr); + const MessageInfo *pMsgInfo = dynamic_cast( pErr ); if(pMsgInfo) { if(GetMessageString(nErrCode, rStr, nFlags)) @@ -187,15 +187,14 @@ bool SfxErrorHandler::CreateString( } else if(GetErrorString(nErrCode, rStr, nFlags)) { - const StringErrorInfo *pStringInfo = PTR_CAST(StringErrorInfo,pErr); + const StringErrorInfo *pStringInfo = dynamic_cast(pErr); if(pStringInfo) { rStr = rStr.replaceAll("$(ARG1)", pStringInfo->GetErrorString()); } else { - const TwoStringErrorInfo * pTwoStringInfo = PTR_CAST(TwoStringErrorInfo, - pErr); + const TwoStringErrorInfo * pTwoStringInfo = dynamic_cast(pErr); if (pTwoStringInfo) { rStr = rStr.replaceAll("$(ARG1)", pTwoStringInfo->GetArg1()); -- cgit