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 --- idlc/source/astdump.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'idlc') diff --git a/idlc/source/astdump.cxx b/idlc/source/astdump.cxx index 5382685e4762..efce89b1b8ca 100644 --- a/idlc/source/astdump.cxx +++ b/idlc/source/astdump.cxx @@ -173,8 +173,8 @@ sal_Bool AstService::dump(RegistryKey& rKey) sal_uInt16 constructors = 0; sal_uInt16 properties = 0; sal_uInt16 references = 0; - {for (DeclList::const_iterator i(getIteratorBegin()); i != getIteratorEnd(); - ++i) + for (DeclList::const_iterator i(getIteratorBegin()); i != getIteratorEnd(); + ++i) { switch ((*i)->getNodeType()) { case NT_interface: @@ -212,7 +212,7 @@ sal_Bool AstService::dump(RegistryKey& rKey) OSL_ASSERT(false); break; } - }} + } OSL_ASSERT(constructors == 0 || !m_defaultConstructor); if (m_defaultConstructor) { constructors = 1; -- cgit v1.2.3