summaryrefslogtreecommitdiff
path: root/sal
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 /sal
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 'sal')
-rw-r--r--sal/qa/rtl/uri/rtl_testuri.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sal/qa/rtl/uri/rtl_testuri.cxx b/sal/qa/rtl/uri/rtl_testuri.cxx
index 77d535f7ec9a..ec29c8097d27 100644
--- a/sal/qa/rtl/uri/rtl_testuri.cxx
+++ b/sal/qa/rtl/uri/rtl_testuri.cxx
@@ -68,9 +68,9 @@ void Test::test_Uri() {
"\0x70\0x71\0x72\0x73\0x74\0x75\0x76\0x77"
"\0x78\0x79\0x7A\0x7B\0x7C\0x7D\0x7E\0x7F"));
aText2 = aText1;
- {for (rtl_UriCharClass eCharClass = eFirstCharClass;
- eCharClass <= eLastCharClass;
- eCharClass = static_cast< rtl_UriCharClass >(eCharClass + 1))
+ for (rtl_UriCharClass eCharClass = eFirstCharClass;
+ eCharClass <= eLastCharClass;
+ eCharClass = static_cast< rtl_UriCharClass >(eCharClass + 1))
{
CPPUNIT_ASSERT_MESSAGE(
"failure 1",
@@ -120,7 +120,7 @@ void Test::test_Uri() {
RTL_TEXTENCODING_ISO_8859_1),
rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8)
== aText2));
- }}
+ }
aText1 = rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM(
@@ -157,9 +157,9 @@ void Test::test_Uri() {
"\0xF0\0xF1\0xF2\0xF3\0xF4\0xF5\0xF6\0xF7"
"\0xF8\0xF9\0xFA\0xFB\0xFC\0xFD\0xFE\0xFF"));
aText2 = aText1;
- {for (rtl_UriCharClass eCharClass = eFirstCharClass;
- eCharClass <= eLastCharClass;
- eCharClass = static_cast< rtl_UriCharClass >(eCharClass + 1))
+ for (rtl_UriCharClass eCharClass = eFirstCharClass;
+ eCharClass <= eLastCharClass;
+ eCharClass = static_cast< rtl_UriCharClass >(eCharClass + 1))
{
CPPUNIT_ASSERT_MESSAGE(
"failure 7",
@@ -193,7 +193,7 @@ void Test::test_Uri() {
RTL_TEXTENCODING_UTF8),
rtl_UriDecodeWithCharset, RTL_TEXTENCODING_UTF8)
== aText2));
- }}
+ }
// Check surrogate handling: