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 --- registry/source/regimpl.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'registry') diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index e364a1757953..44b25a7c2d81 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -191,17 +191,17 @@ void dumpType(typereg::Reader const & reader, rtl::OString const & indent) { printf( "%ssuper type count: %u\n", indent.getStr(), static_cast< unsigned int >(reader.getSuperTypeCount())); - {for (sal_uInt16 i = 0; i < reader.getSuperTypeCount(); ++i) { + for (sal_uInt16 i = 0; i < reader.getSuperTypeCount(); ++i) { printf( "%ssuper type name %u: ", indent.getStr(), static_cast< unsigned int >(i)); printString(reader.getSuperTypeName(i)); printf("\n"); - }} + } printf( "%sfield count: %u\n", indent.getStr(), static_cast< unsigned int >(reader.getFieldCount())); - {for (sal_uInt16 i = 0; i < reader.getFieldCount(); ++i) { + for (sal_uInt16 i = 0; i < reader.getFieldCount(); ++i) { printf( "%sfield %u:\n", indent.getStr(), static_cast< unsigned int >(i)); @@ -285,11 +285,11 @@ void dumpType(typereg::Reader const & reader, rtl::OString const & indent) { break; } printf("\n"); - }} + } printf( "%smethod count: %u\n", indent.getStr(), static_cast< unsigned int >(reader.getMethodCount())); - {for (sal_uInt16 i = 0; i < reader.getMethodCount(); ++i) { + for (sal_uInt16 i = 0; i < reader.getMethodCount(); ++i) { printf( "%smethod %u:\n", indent.getStr(), static_cast< unsigned int >(i)); @@ -378,11 +378,11 @@ void dumpType(typereg::Reader const & reader, rtl::OString const & indent) { printString(reader.getMethodExceptionTypeName(i, j)); printf("\n"); } - }} + } printf( "%sreference count: %u\n", indent.getStr(), static_cast< unsigned int >(reader.getReferenceCount())); - {for (sal_uInt16 i = 0; i < reader.getReferenceCount(); ++i) { + for (sal_uInt16 i = 0; i < reader.getReferenceCount(); ++i) { printf( "%sreference %u:\n", indent.getStr(), static_cast< unsigned int >(i)); @@ -416,7 +416,7 @@ void dumpType(typereg::Reader const & reader, rtl::OString const & indent) { printf("%s type name: ", indent.getStr()); printString(reader.getReferenceTypeName(i)); printf("\n"); - }} + } } else { printf("\n"); } -- cgit v1.2.3