Commit 6c39c207 by Paolo Carlini Committed by Paolo Carlini

locale_facets.tcc (num_put::do_put(..., bool)): Minor tweaks, consistent with…

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

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
parent c6d43186
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> 2003-11-29 Paolo Carlini <pcarlini@suse.de>
* include/bits/fstream.tcc (underflow): Minor tweaks in * include/bits/fstream.tcc (underflow): Minor tweaks in
......
...@@ -1008,16 +1008,15 @@ namespace std ...@@ -1008,16 +1008,15 @@ namespace std
const locale& __loc = __io._M_getloc(); const locale& __loc = __io._M_getloc();
const __cache_type* __lc = __uc(__loc); const __cache_type* __lc = __uc(__loc);
const _CharT* __name; const _CharT* __name = __v ? __lc->_M_truename
__name = __v ? __lc->_M_truename : __lc->_M_falsename; : __lc->_M_falsename;
int __len = char_traits<_CharT>::length(__name); int __len = char_traits<_CharT>::length(__name);
_CharT* __cs;
const streamsize __w = __io.width(); const streamsize __w = __io.width();
if (__w > static_cast<streamsize>(__len)) if (__w > static_cast<streamsize>(__len))
{ {
__cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT)
* __w)); * __w));
_M_pad(__fill, __w, __io, __cs, __name, __len); _M_pad(__fill, __w, __io, __cs, __name, __len);
__name = __cs; __name = __cs;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment