summaryrefslogtreecommitdiff
path: root/starmath/source/view.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/view.cxx')
-rw-r--r--starmath/source/view.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index d548b61d2925..ad512b1d50d8 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -694,7 +694,7 @@ SmEditController::~SmEditController()
void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState)
{
- const SfxStringItem *pItem = PTR_CAST(SfxStringItem, pState);
+ const SfxStringItem *pItem = dynamic_cast<const SfxStringItem*>( pState);
if ((pItem != NULL) && (rEdit.GetText() != OUString(pItem->GetValue())))
rEdit.SetText(pItem->GetValue());
@@ -737,7 +737,7 @@ SmViewShell * SmCmdBoxWindow::GetView()
{
SfxDispatcher *pDispatcher = GetBindings().GetDispatcher();
SfxViewShell *pView = pDispatcher ? pDispatcher->GetFrame()->GetViewShell() : NULL;
- return PTR_CAST(SmViewShell, pView);
+ return dynamic_cast<SmViewShell*>( pView);
}
void SmCmdBoxWindow::Resize()