diff options
Diffstat (limited to 'UnoControls/source/base/basecontainercontrol.cxx')
-rw-r--r-- | UnoControls/source/base/basecontainercontrol.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx index 7c8e5e0e67e7..006a7b614073 100644 --- a/UnoControls/source/base/basecontainercontrol.cxx +++ b/UnoControls/source/base/basecontainercontrol.cxx @@ -179,7 +179,7 @@ void SAL_CALL BaseContainerControl::dispose() throw( RuntimeException, std::exce // remove listeners EventObject aObject; - aObject.Source = Reference< XComponent > ( (XControlContainer*)this, UNO_QUERY ); + aObject.Source = Reference< XComponent > ( static_cast<XControlContainer*>(this), UNO_QUERY ); m_aListeners.disposeAndClear( aObject ); // remove controls @@ -236,7 +236,7 @@ void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Re maControlInfoList.push_back( pNewControl ); // initialize new control - pNewControl->xControl->setContext ( (OWeakObject*)this ); + pNewControl->xControl->setContext ( static_cast<OWeakObject*>(this) ); pNewControl->xControl->addEventListener ( static_cast< XEventListener* >( static_cast< XWindowListener* >( this ) ) ); // when container has a peer ... |