From 89d39bc100aabf5dccbe77c0b5c0c85736e85b39 Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Wed, 30 Sep 2015 16:10:07 +0200 Subject: tdf#94559: 4th step to remove rtti.hxx replaced use of PTR_CAST, IS_TYPE, ISA in idl, editeng, sc, sd, sw, sfx2, sot, starmath Change-Id: I4a5bba4fdc4829099618c09b690c83f876a3d653 Reviewed-on: https://gerrit.libreoffice.org/19132 Tested-by: Jenkins Reviewed-by: Oliver Specht --- sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx') diff --git a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx index afd26268d4fe..d10f3c415107 100644 --- a/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx +++ b/sd/source/ui/accessibility/AccessibleDocumentViewBase.cxx @@ -739,7 +739,7 @@ uno::Any SAL_CALL AccessibleDocumentViewBase::getExtendedAttributes() uno::Any anyAtrribute; OUString sValue; - if (mpViewShell && mpViewShell->ISA(::sd::DrawViewShell)) + if (0 != dynamic_cast (mpViewShell)) { ::sd::DrawViewShell* pDrViewSh = static_cast< ::sd::DrawViewShell*>(mpViewShell); OUString sDisplay; @@ -796,7 +796,7 @@ uno::Any SAL_CALL AccessibleDocumentViewBase::getExtendedAttributes() sValue += ";"; } } - if (mpViewShell && mpViewShell->ISA(::sd::PresentationViewShell)) + if (dynamic_cast(mpViewShell) != nullptr ) { ::sd::PresentationViewShell* pPresViewSh = static_cast< ::sd::PresentationViewShell*>(mpViewShell); SdPage* pCurrPge = pPresViewSh->getCurrentPage(); @@ -827,7 +827,7 @@ uno::Any SAL_CALL AccessibleDocumentViewBase::getExtendedAttributes() } } } - if (mpViewShell && mpViewShell->ISA(::sd::OutlineViewShell) ) + if (dynamic_cast(mpViewShell ) != nullptr ) { OUString sName; OUString sDisplay; -- cgit