diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:25:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:25:25 +0200 |
commit | a1a5588b1b440836a6655ab0af5f854f3f5eb5ed (patch) | |
tree | bf96e680ee4b939a0a584d96140b2bf50e1776b6 /framework/source/helper | |
parent | 648cf9a56dcb11d2674c48e77672cc124aad1bce (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I4a72a60d621c65e63310ef70b991f9c86f00494d
Diffstat (limited to 'framework/source/helper')
-rw-r--r-- | framework/source/helper/ocomponentaccess.cxx | 2 | ||||
-rw-r--r-- | framework/source/helper/oframes.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/helper/ocomponentaccess.cxx b/framework/source/helper/ocomponentaccess.cxx index edc0dcb5208f..d5f478b0a6b4 100644 --- a/framework/source/helper/ocomponentaccess.cxx +++ b/framework/source/helper/ocomponentaccess.cxx @@ -68,7 +68,7 @@ css::uno::Reference< XEnumeration > SAL_CALL OComponentAccess::createEnumeration Sequence< css::uno::Reference< XComponent > > seqComponents; impl_collectAllChildComponents( css::uno::Reference< XFramesSupplier >( xLock, UNO_QUERY ), seqComponents ); OComponentEnumeration* pEnumeration = new OComponentEnumeration( seqComponents ); - xReturn = css::uno::Reference< XEnumeration >( (OWeakObject*)pEnumeration, UNO_QUERY ); + xReturn = css::uno::Reference< XEnumeration >( static_cast<OWeakObject*>(pEnumeration), UNO_QUERY ); } // Return result of this operation. diff --git a/framework/source/helper/oframes.cxx b/framework/source/helper/oframes.cxx index e39ce2a322bf..18f92f83a3e5 100644 --- a/framework/source/helper/oframes.cxx +++ b/framework/source/helper/oframes.cxx @@ -232,7 +232,7 @@ Any SAL_CALL OFrames::getByIndex( sal_Int32 nIndex ) throw( IndexOutOfBoundsExce sal_uInt32 nCount = m_pFrameContainer->getCount(); if ( nIndex < 0 || ( sal::static_int_cast< sal_uInt32 >( nIndex ) >= nCount )) throw IndexOutOfBoundsException("OFrames::getByIndex - Index out of bounds", - (OWeakObject *)this ); + static_cast<OWeakObject *>(this) ); // Set default return value. Any aReturnValue; |