diff options
Diffstat (limited to 'basctl/source/accessibility')
-rw-r--r-- | basctl/source/accessibility/accessibledialogwindow.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/basctl/source/accessibility/accessibledialogwindow.cxx b/basctl/source/accessibility/accessibledialogwindow.cxx index 2982cda8918a..4621e7e52f4a 100644 --- a/basctl/source/accessibility/accessibledialogwindow.cxx +++ b/basctl/source/accessibility/accessibledialogwindow.cxx @@ -513,15 +513,15 @@ awt::Rectangle AccessibleDialogWindow::implGetBounds() throw (RuntimeException) void AccessibleDialogWindow::Notify( SfxBroadcaster&, const SfxHint& rHint ) { - if (SdrHint* pSdrHint = dynamic_cast<SdrHint*>(&rHint)) + if (SdrHint const* pSdrHint = dynamic_cast<SdrHint const*>(&rHint)) { switch ( pSdrHint->GetKind() ) { case HINT_OBJINSERTED: { - if (DlgEdObj* pDlgEdObj = dynamic_cast<DlgEdObj*>(pSdrHint->GetObject())) + if (DlgEdObj const* pDlgEdObj = dynamic_cast<DlgEdObj const*>(pSdrHint->GetObject())) { - ChildDescriptor aDesc( pDlgEdObj ); + ChildDescriptor aDesc(const_cast<DlgEdObj*>(pDlgEdObj)); if ( IsChildVisible( aDesc ) ) InsertChild( aDesc ); } @@ -529,14 +529,14 @@ void AccessibleDialogWindow::Notify( SfxBroadcaster&, const SfxHint& rHint ) break; case HINT_OBJREMOVED: { - if (DlgEdObj* pDlgEdObj = dynamic_cast<DlgEdObj*>(pSdrHint->GetObject())) - RemoveChild( ChildDescriptor( pDlgEdObj ) ); + if (DlgEdObj const* pDlgEdObj = dynamic_cast<DlgEdObj const*>(pSdrHint->GetObject())) + RemoveChild( ChildDescriptor(const_cast<DlgEdObj*>(pDlgEdObj)) ); } break; default: ; } } - else if (DlgEdHint* pDlgEdHint = dynamic_cast<DlgEdHint*>(&rHint)) + else if (DlgEdHint const* pDlgEdHint = dynamic_cast<DlgEdHint const*>(&rHint)) { switch ( pDlgEdHint->GetKind() ) { |