diff options
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 ) { |