diff options
Diffstat (limited to 'sfx2/source/dialog/tplcitem.cxx')
-rw-r--r-- | sfx2/source/dialog/tplcitem.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/dialog/tplcitem.cxx b/sfx2/source/dialog/tplcitem.cxx index 3210a5e44501..42764ecab279 100644 --- a/sfx2/source/dialog/tplcitem.cxx +++ b/sfx2/source/dialog/tplcitem.cxx @@ -70,8 +70,7 @@ void SfxTemplateControllerItem::StateChanged( sal_uInt16 nSID, SfxItemState eSta if ( !bAvailable ) rTemplateDlg.SetFamilyState(GetId(), 0); else { - const SfxTemplateItem *pStateItem = PTR_CAST( - SfxTemplateItem, pItem); + const SfxTemplateItem *pStateItem = dynamic_cast< const SfxTemplateItem* >(pItem); DBG_ASSERT(pStateItem != 0, "SfxTemplateItem expected"); rTemplateDlg.SetFamilyState( GetId(), pStateItem ); } @@ -146,7 +145,7 @@ void SfxTemplateControllerItem::StateChanged( sal_uInt16 nSID, SfxItemState eSta } case SID_STYLE_FAMILY : { - const SfxUInt16Item *pStateItem = PTR_CAST( SfxUInt16Item, pItem); + const SfxUInt16Item *pStateItem = dynamic_cast< const SfxUInt16Item* >(pItem); if (pStateItem) rTemplateDlg.SetFamily( pStateItem->GetValue() ); break; |