diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2002-11-24 19:48:35 +0100 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2002-11-24 18:48:35 +0000 |
commit | bbed24125e9cd0a42affa07b8fede24c359f2c48 (patch) | |
tree | 55c8b897974e9196fb16f32e9c8a53d0ba04717d /libstdc++-v3 | |
parent | bdabc150ceb7045b6f6f2b51d08f58e7b64f27de (diff) | |
download | gcc-bbed24125e9cd0a42affa07b8fede24c359f2c48.tar.gz |
locale.cc (locale::locale(const char*)): Trivial cosmetic tweaks.
2002-11-24 Paolo Carlini <pcarlini@unitus.it>
* src/locale.cc (locale::locale(const char*)):
Trivial cosmetic tweaks.
From-SVN: r59433
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/src/locale.cc | 14 |
2 files changed, 11 insertions, 8 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c89b01e9243..d84114e55ab 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2002-11-24 Paolo Carlini <pcarlini@unitus.it> + + * src/locale.cc (locale::locale(const char*)): + Trivial cosmetic tweaks. + 2002-11-22 Laszlo Ersek <erseklaszlo@chello.hu> Paolo Carlini <pcarlini@unitus.it> diff --git a/libstdc++-v3/src/locale.cc b/libstdc++-v3/src/locale.cc index 46fab283241..dfb2feba8eb 100644 --- a/libstdc++-v3/src/locale.cc +++ b/libstdc++-v3/src/locale.cc @@ -208,9 +208,8 @@ namespace std // different from LANG. size_t __i = 0; if (strcmp(__res, "C") == 0) - for (__i = 0; - __i < _S_categories_size + _S_extra_categories_size; - ++__i) + for (; __i < _S_categories_size + + _S_extra_categories_size; ++__i) { __env = getenv(_S_categories[__i]); if (__env && strcmp(__env, "") != 0 @@ -219,9 +218,8 @@ namespace std break; } else - for (__i = 0; - __i < _S_categories_size + _S_extra_categories_size; - ++__i) + for (; __i < _S_categories_size + + _S_extra_categories_size; ++__i) { __env = getenv(_S_categories[__i]); if (__env && strcmp(__env, "") != 0 @@ -253,9 +251,9 @@ namespace std if (!__env || strcmp(__env, "") == 0) { __str += _S_categories[__i]; - __str += '='; + __str += "="; __str += __res; - __str += ';'; + __str += ";"; } else if (strcmp(__env, "C") == 0 || strcmp(__env, "POSIX") == 0) |