diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-01-26 16:31:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-01-26 16:36:09 +0100 |
commit | f1bca26afcc7593d0124c216c0400a9e2e47fc1d (patch) | |
tree | 37557f9a9afd815c4389ce7c4b3c47380829ef51 /idlc | |
parent | 8e681942f771d7beae52b1e786fab16e6a653ab1 (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 'idlc')
-rw-r--r-- | idlc/source/astdump.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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; |