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 --- sw/source/uibase/sidebar/PagePropertyPanel.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sw/source/uibase/sidebar/PagePropertyPanel.cxx') diff --git a/sw/source/uibase/sidebar/PagePropertyPanel.cxx b/sw/source/uibase/sidebar/PagePropertyPanel.cxx index ea4edfd5a4c9..bb9b436e6bb0 100644 --- a/sw/source/uibase/sidebar/PagePropertyPanel.cxx +++ b/sw/source/uibase/sidebar/PagePropertyPanel.cxx @@ -488,7 +488,7 @@ void PagePropertyPanel::NotifyItemUpdate( case SID_ATTR_PAGE_COLUMN: { if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SfxInt16Item) ) + pState && dynamic_cast< const SfxInt16Item *>( pState ) != nullptr ) { mpPageColumnTypeItem.reset( static_cast(pState->Clone()) ); ChangeColumnImage( mpPageColumnTypeItem->GetValue() ); @@ -497,7 +497,7 @@ void PagePropertyPanel::NotifyItemUpdate( break; case SID_ATTR_PAGE_LRSPACE: if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SvxLongLRSpaceItem) ) + pState && dynamic_cast< const SvxLongLRSpaceItem *>( pState ) != nullptr ) { mpPageLRMarginItem.reset( static_cast(pState->Clone()) ); ChangeMarginImage(); @@ -506,7 +506,7 @@ void PagePropertyPanel::NotifyItemUpdate( case SID_ATTR_PAGE_ULSPACE: if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SvxLongULSpaceItem) ) + pState && dynamic_cast< const SvxLongULSpaceItem *>( pState ) != nullptr ) { mpPageULMarginItem.reset( static_cast(pState->Clone()) ); ChangeMarginImage(); @@ -515,7 +515,7 @@ void PagePropertyPanel::NotifyItemUpdate( case SID_ATTR_PAGE: if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SvxPageItem) ) + pState && dynamic_cast< const SvxPageItem *>( pState ) != nullptr ) { const sal_uInt16 nIdOrientation = mpToolBoxOrientation->GetItemId(UNO_ORIENTATION); mpPageItem.reset( static_cast(pState->Clone()) ); @@ -539,7 +539,7 @@ void PagePropertyPanel::NotifyItemUpdate( mpBindings->Invalidate( SID_ATTR_PAGE, true ); } if ( eState >= SfxItemState::DEFAULT && - pState && pState->ISA(SvxSizeItem) ) + pState && dynamic_cast< const SvxSizeItem *>( pState ) != nullptr ) { mpPageSizeItem.reset( static_cast(pState->Clone()) ); ChangeSizeImage(); -- cgit v1.2.3