diff options
author | Oliver Specht <oliver.specht@cib.de> | 2015-09-29 15:35:28 +0200 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2015-10-01 08:32:26 +0000 |
commit | 85f93697defd9a812a0cda0bc4e9364e28c0339e (patch) | |
tree | 0c43827cda0e18b03c3d28599b696bcab3a8069a /svx/source/mnuctrls | |
parent | c1e0a697a70872ef1b6deaf5222538899554221b (diff) |
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 <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
Diffstat (limited to 'svx/source/mnuctrls')
-rw-r--r-- | svx/source/mnuctrls/SmartTagCtl.cxx | 2 | ||||
-rw-r--r-- | svx/source/mnuctrls/clipboardctl.cxx | 2 | ||||
-rw-r--r-- | svx/source/mnuctrls/fntctl.cxx | 2 | ||||
-rw-r--r-- | svx/source/mnuctrls/fntszctl.cxx | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/mnuctrls/SmartTagCtl.cxx b/svx/source/mnuctrls/SmartTagCtl.cxx index 3dbfc6dce242..4dd8125ae9b7 100644 --- a/svx/source/mnuctrls/SmartTagCtl.cxx +++ b/svx/source/mnuctrls/SmartTagCtl.cxx @@ -142,7 +142,7 @@ void SvxSmartTagsControl::StateChanged( sal_uInt16, SfxItemState eState, const S if ( SfxItemState::DEFAULT == eState ) { - const SvxSmartTagItem* pSmartTagItem = PTR_CAST( SvxSmartTagItem, pState ); + const SvxSmartTagItem* pSmartTagItem = dynamic_cast<const SvxSmartTagItem*>( pState ); if ( 0 != pSmartTagItem ) { delete mpSmartTagItem; diff --git a/svx/source/mnuctrls/clipboardctl.cxx b/svx/source/mnuctrls/clipboardctl.cxx index e085c20f8104..721e0ce4be51 100644 --- a/svx/source/mnuctrls/clipboardctl.cxx +++ b/svx/source/mnuctrls/clipboardctl.cxx @@ -63,7 +63,7 @@ SvxClipBoardControl::~SvxClipBoardControl() VclPtr<SfxPopupWindow> SvxClipBoardControl::CreatePopupWindow() { - const SvxClipboardFormatItem* pFmtItem = PTR_CAST( SvxClipboardFormatItem, pClipboardFmtItem ); + const SvxClipboardFormatItem* pFmtItem = dynamic_cast<SvxClipboardFormatItem*>( pClipboardFmtItem ); if ( pFmtItem ) { if (pPopup) diff --git a/svx/source/mnuctrls/fntctl.cxx b/svx/source/mnuctrls/fntctl.cxx index 6c2f18d25f5d..7f6060bfe3ed 100644 --- a/svx/source/mnuctrls/fntctl.cxx +++ b/svx/source/mnuctrls/fntctl.cxx @@ -99,7 +99,7 @@ void SvxFontMenuControl::StateChanged( { if ( !pMenu->GetItemCount() ) FillMenu(); - const SvxFontItem* pFontItem = PTR_CAST( SvxFontItem, pState ); + const SvxFontItem* pFontItem = dynamic_cast<const SvxFontItem*>( pState ); OUString aFont; if ( pFontItem ) diff --git a/svx/source/mnuctrls/fntszctl.cxx b/svx/source/mnuctrls/fntszctl.cxx index 34f9d6fe23ac..215cd44c30ae 100644 --- a/svx/source/mnuctrls/fntszctl.cxx +++ b/svx/source/mnuctrls/fntszctl.cxx @@ -83,10 +83,10 @@ void SvxFontSizeMenuControl::StateChanged( if ( SfxItemState::DEFAULT == eState ) { - if ( pState->ISA(SvxFontHeightItem) ) + if ( dynamic_cast<const SvxFontHeightItem*>( pState) != nullptr ) { const SvxFontHeightItem* pItem = - PTR_CAST( SvxFontHeightItem, pState ); + dynamic_cast<const SvxFontHeightItem*>( pState ); long nVal = 0; if ( pItem ) @@ -106,9 +106,9 @@ void SvxFontSizeMenuControl::StateChanged( } pMenu->SetCurHeight( nVal ); } - else if ( pState->ISA(SvxFontItem) ) + else if ( dynamic_cast<const SvxFontItem*>( pState) != nullptr ) { - const SvxFontItem* pItem = PTR_CAST( SvxFontItem, pState ); + const SvxFontItem* pItem = dynamic_cast<const SvxFontItem*>( pState ); if ( pItem ) { |