diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:06:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:06:32 +0100 |
commit | 2fa1c894ecabb3dbc2f2debd5ce73931c8da536c (patch) | |
tree | 8bb629954cee70eb21387084c8da7f31fe3cd488 /cppuhelper/source/tdmgr.cxx | |
parent | 8fc6c5c84b3e4249f4c38ebb7399e0d07d9d4463 (diff) |
More loplugin:cstylecast: cppuhelper
Change-Id: I193884eea6289653d648489edd1a8e929524a3c5
Diffstat (limited to 'cppuhelper/source/tdmgr.cxx')
-rw-r--r-- | cppuhelper/source/tdmgr.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cppuhelper/source/tdmgr.cxx b/cppuhelper/source/tdmgr.cxx index 6a1ca23740b0..fd0e99c9e520 100644 --- a/cppuhelper/source/tdmgr.cxx +++ b/cppuhelper/source/tdmgr.cxx @@ -95,7 +95,7 @@ inline static typelib_TypeDescription * createCTD( for ( nPos = nMembers; nPos--; ) { typelib_CompoundMember_Init & rInit = pMemberInits[nPos]; - rInit.eTypeClass = (typelib_TypeClass)pMemberTypes[nPos]->getTypeClass(); + rInit.eTypeClass = static_cast<typelib_TypeClass>(pMemberTypes[nPos]->getTypeClass()); OUString aMemberTypeName( pMemberTypes[nPos]->getName() ); rtl_uString_acquire( rInit.pTypeName = aMemberTypeName.pData ); @@ -106,7 +106,7 @@ inline static typelib_TypeDescription * createCTD( typelib_typedescription_new( &pRet, - (typelib_TypeClass)xType->getTypeClass(), + static_cast<typelib_TypeClass>(xType->getTypeClass()), aTypeName.pData, (pBaseType ? pBaseType->pWeakRef : nullptr), nMembers, pMemberInits ); @@ -167,7 +167,7 @@ inline static typelib_TypeDescription * createCTD( { typelib_StructMember_Init & rInit = pMemberInits[nPos]; rInit.aBase.eTypeClass - = (typelib_TypeClass)pMemberTypes[nPos]->getTypeClass(); + = static_cast<typelib_TypeClass>(pMemberTypes[nPos]->getTypeClass()); OUString aMemberTypeName( pMemberTypes[nPos]->getName() ); rtl_uString_acquire( @@ -227,7 +227,7 @@ inline static typelib_TypeDescription * createCTD( reinterpret_cast<typelib_InterfaceAttributeTypeDescription **>(&pRet), xAttribute->getPosition(), aMemberName.pData, // name - (typelib_TypeClass)xType->getTypeClass(), + static_cast<typelib_TypeClass>(xType->getTypeClass()), aMemberTypeName.pData, // type name xAttribute->isReadOnly(), getExc.size(), getExc.data(), @@ -259,7 +259,7 @@ static typelib_TypeDescription * createCTD( const Reference< XTypeDescription > & xType = xParam->getType(); typelib_Parameter_Init & rInit = pParamInit[xParam->getPosition()]; - rInit.eTypeClass = (typelib_TypeClass)xType->getTypeClass(); + rInit.eTypeClass = static_cast<typelib_TypeClass>(xType->getTypeClass()); OUString aParamTypeName( xType->getName() ); rtl_uString_acquire( rInit.pTypeName = aParamTypeName.pData ); OUString aParamName( xParam->getName() ); @@ -289,7 +289,7 @@ static typelib_TypeDescription * createCTD( xMethod->getPosition(), xMethod->isOneway(), aTypeName.pData, - (typelib_TypeClass)xReturnType->getTypeClass(), + static_cast<typelib_TypeClass>(xReturnType->getTypeClass()), aReturnTypeName.pData, nParams, pParamInit, nExceptions, ppExceptionNames ); @@ -349,7 +349,7 @@ inline static typelib_TypeDescription * createCTD( ppMemberRefs[nPos] = nullptr; typelib_typedescriptionreference_new( ppMemberRefs + nPos, - (typelib_TypeClass)pMembers[nPos]->getTypeClass(), + static_cast<typelib_TypeClass>(pMembers[nPos]->getTypeClass()), aMemberTypeName.pData ); } @@ -407,7 +407,7 @@ inline static typelib_TypeDescription * createCTD( typelib_typedescription_new( &pRet, - (typelib_TypeClass)xType->getTypeClass(), + static_cast<typelib_TypeClass>(xType->getTypeClass()), aTypeName.pData, pRefType->pWeakRef, 0, nullptr ); |