From f1bca26afcc7593d0124c216c0400a9e2e47fc1d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 26 Jan 2013 16:31:43 +0100 Subject: 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 --- cppuhelper/source/tdmgr.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/source/tdmgr.cxx b/cppuhelper/source/tdmgr.cxx index 9538c3d59bee..ef922dca6733 100644 --- a/cppuhelper/source/tdmgr.cxx +++ b/cppuhelper/source/tdmgr.cxx @@ -418,13 +418,13 @@ inline static typelib_TypeDescription * createCTD( // is also the typelib_TypeDescriptionReference for that type: boost::scoped_array< typelib_TypeDescription * > aBaseTypes( new typelib_TypeDescription *[nBases]); - {for (sal_Int32 i = 0; i < nBases; ++i) { + for (sal_Int32 i = 0; i < nBases; ++i) { typelib_TypeDescription * p = createCTD(access, aBases[i]); OSL_ASSERT( !TYPELIB_TYPEDESCRIPTIONREFERENCE_ISREALLYWEAK(p->eTypeClass)); typelib_typedescription_register(&p); aBaseTypes[i] = p; - }} + } typelib_TypeDescriptionReference ** pBaseTypeRefs = reinterpret_cast< typelib_TypeDescriptionReference ** >( aBaseTypes.get()); @@ -461,9 +461,9 @@ inline static typelib_TypeDescription * createCTD( nMembers, ppMemberRefs ); // cleanup refs and base type - {for (int i = 0; i < nBases; ++i) { + for (int i = 0; i < nBases; ++i) { typelib_typedescription_release(aBaseTypes[i]); - }} + } for ( nPos = nMembers; nPos--; ) { -- cgit