summaryrefslogtreecommitdiff
path: root/cppu/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-01-26 16:31:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-01-26 16:36:09 +0100
commitf1bca26afcc7593d0124c216c0400a9e2e47fc1d (patch)
tree37557f9a9afd815c4389ce7c4b3c47380829ef51 /cppu/source
parent8e681942f771d7beae52b1e786fab16e6a653ab1 (diff)
Remove redundant braces around for loops
...that had once been workarounds for compilers that did not yet support the C++98 scoping rules for declarations in for-init-statements. Change-Id: I51dc42982b30bf3adea6de1a10a91c0b4b4acfbe
Diffstat (limited to 'cppu/source')
-rw-r--r--cppu/source/typelib/typelib.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 9eda378609f5..0c66661bef21 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -1186,8 +1186,8 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newMIInterface(
sal_Int32 n = 0;
BaseList::List const & rList = aBaseList.getList();
- {for (BaseList::List::const_iterator i(rList.begin()); i != rList.end();
- ++i)
+ for (BaseList::List::const_iterator i(rList.begin()); i != rList.end();
+ ++i)
{
typelib_InterfaceTypeDescription const * pBase = i->base;
typelib_InterfaceTypeDescription const * pDirectBase
@@ -1210,7 +1210,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newMIInterface(
aName.pData);
pITD->ppAllMembers[n++] = pDerivedMember;
}
- }}
+ }
if( nMembers )
{
@@ -1218,11 +1218,11 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL typelib_typedescription_newMIInterface(
}
// add own members
- {for( sal_Int32 i = 0; i < nMembers; i++ )
+ for( sal_Int32 i = 0; i < nMembers; i++ )
{
typelib_typedescriptionreference_acquire( ppMembers[i] );
pITD->ppAllMembers[n++] = ppMembers[i];
- }}
+ }
}
typelib_TypeDescription * pTmp = (typelib_TypeDescription *)pITD;
@@ -1507,18 +1507,18 @@ static inline void typelib_typedescription_destructExtendedMembers(
case typelib_TypeClass_INTERFACE:
{
typelib_InterfaceTypeDescription * pITD = (typelib_InterfaceTypeDescription*)pTD;
- {for( sal_Int32 i = 0; i < pITD->nAllMembers; i++ )
+ for( sal_Int32 i = 0; i < pITD->nAllMembers; i++ )
{
typelib_typedescriptionreference_release( pITD->ppAllMembers[i] );
- }}
+ }
delete [] pITD->ppAllMembers;
delete [] pITD->pMapMemberIndexToFunctionIndex;
delete [] pITD->pMapFunctionIndexToMemberIndex;
- {for (sal_Int32 i = 0; i < pITD->nBaseTypes; ++i) {
+ for (sal_Int32 i = 0; i < pITD->nBaseTypes; ++i) {
typelib_typedescription_release(
reinterpret_cast< typelib_TypeDescription * >(
pITD->ppBaseTypes[i]));
- }}
+ }
delete[] pITD->ppBaseTypes;
break;
}