diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-26 15:35:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-29 12:50:36 +0200 |
commit | a2320eaf39e18cf8dc5469e83198f5478595aa51 (patch) | |
tree | ab29f6e62e4d204b0ae30dfbccda03d36808e9ba /UnoControls | |
parent | 0ecf6afbd104b53836c7a4d45fbc2a6ce1e356e0 (diff) |
loplugin: cstylecast
Change-Id: I28443b688f8ab752162846e5cea661f26d269cad
Diffstat (limited to 'UnoControls')
-rw-r--r-- | UnoControls/source/base/basecontainercontrol.cxx | 4 | ||||
-rw-r--r-- | UnoControls/source/base/multiplexer.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx index 4c7a7bccd139..5e03437e3d94 100644 --- a/UnoControls/source/base/basecontainercontrol.cxx +++ b/UnoControls/source/base/basecontainercontrol.cxx @@ -266,7 +266,7 @@ void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Re // Send event while ( aIterator.hasMoreElements() ) { - ((XContainerListener*)aIterator.next())->elementInserted (aEvent); + static_cast<XContainerListener*>(aIterator.next())->elementInserted (aEvent); } } } @@ -313,7 +313,7 @@ void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl > while ( aIterator.hasMoreElements() ) { - ((XContainerListener*)aIterator.next())->elementRemoved (aEvent); + static_cast<XContainerListener*>(aIterator.next())->elementRemoved (aEvent); } } // Break "for" ! diff --git a/UnoControls/source/base/multiplexer.cxx b/UnoControls/source/base/multiplexer.cxx index 902428017f3b..ad58593c83c5 100644 --- a/UnoControls/source/base/multiplexer.cxx +++ b/UnoControls/source/base/multiplexer.cxx @@ -48,7 +48,7 @@ namespace unocontrols{ { \ if( aIterator.hasMoreElements() ) \ { \ - INTERFACE * pListener = (INTERFACE *)aIterator.next(); \ + INTERFACE * pListener = static_cast<INTERFACE *>(aIterator.next()); \ try \ { \ pListener->METHOD( aLocalEvent ); \ |