locale_facets.tcc (num_put::do_put(..., bool)): Minor tweaks, consistent with the...
authorPaolo Carlini <pcarlini@suse.de>
Sun, 30 Nov 2003 11:33:23 +0000 (11:33 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 30 Nov 2003 11:33:23 +0000 (11:33 +0000)
2003-11-30  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
Minor tweaks, consistent with the style used in other facets.

From-SVN: r74056

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc

index 931002bfa0fede1e7642411b287c3c6b63972190..b0030a5ac79176cbdd59dfdf811e8c3ea210b49c 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-30  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.tcc (num_put::do_put(..., bool)):
+       Minor tweaks, consistent with the style used in other facets.
+
 2003-11-29  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/fstream.tcc (underflow): Minor tweaks in
index c2097e30d335ba5c3d3df7d54efe5d4bdf5644a3..147a9bc8fe161a1ef09437707910f1f8d62c3dd9 100644 (file)
@@ -1008,16 +1008,15 @@ namespace std
          const locale& __loc = __io._M_getloc();
          const __cache_type* __lc = __uc(__loc);
 
-         const _CharT* __name;
-         __name = __v ? __lc->_M_truename : __lc->_M_falsename;
+         const _CharT* __name = __v ? __lc->_M_truename 
+                                    : __lc->_M_falsename;
          int __len = char_traits<_CharT>::length(__name);
 
-         _CharT* __cs;
          const streamsize __w = __io.width();
          if (__w > static_cast<streamsize>(__len))
            {
-             __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 
-                                                           * __w));
+             _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) 
+                                                                  * __w));
              _M_pad(__fill, __w, __io, __cs, __name, __len);
              __name = __cs;
            }