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 /ucb/source | |
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 'ucb/source')
-rw-r--r-- | ucb/source/ucp/ftp/ftpdirp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ucb/source/ucp/ftp/ftpdirp.cxx b/ucb/source/ucp/ftp/ftpdirp.cxx index c847a32d7acf..f618019d3019 100644 --- a/ucb/source/ucp/ftp/ftpdirp.cxx +++ b/ucb/source/ucp/ftp/ftpdirp.cxx @@ -783,12 +783,12 @@ sal_Bool FTPDirectoryParser::parseVMS ( // Parse <year> part and set entry date's year: sal_uInt16 nYear = 0; - {for (int i = 0; i < 2; ++i) + for (int i = 0; i < 2; ++i) { if (*p < '0' || *p > '9') return sal_False; nYear = 10 * nYear + (*p++ - '0'); - }} + } if (*p >= '0' && *p <= '9') { nYear = 10 * nYear + (*p++ - '0'); |