diff options
author | Uray M. János <uray.janos@gmail.com> | 2012-08-07 15:22:25 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-08-07 16:27:34 +0300 |
commit | 5f3a75f97e4c4235c865c2687c3bfca37e19811b (patch) | |
tree | 79d9bda009fd840947804115d5fa3dbe63c4220b /basctl/source/accessibility | |
parent | 3494780dcdb98b70fca4f28c354eec9c081b59c5 (diff) |
IDE: dynamic_cast fix
Change-Id: Ia8826be6e6fe7c09adb4f0104b52ceba6b89163b
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() ) { |