2003-11-26 Paolo Carlini <pcarlini@suse.de>
authorPaolo Carlini <pcarlini@suse.de>
Wed, 26 Nov 2003 11:47:01 +0000 (11:47 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 26 Nov 2003 11:47:01 +0000 (11:47 +0000)
* include/bits/locale_facets.h
(__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
_M_truename and _M_falsename: the constructor always does
it immediately before the _M_cache call.

From-SVN: r73948

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

index 72fd837893c1d90b908054c45b6fb8edd9246b25..9e502e7b04dd1f0810f46782ec702390ddb66d98 100644 (file)
@@ -1,3 +1,10 @@
+2003-11-26  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/locale_facets.h
+       (__numpunct_cache<>::_M_cache): Avoid zeroing _M_grouping,
+       _M_truename and _M_falsename: the constructor always does
+       it immediately before the _M_cache call.
+
 2003-11-25  Paolo Carlini  <pcarlini@suse.de>
 
        * config/locale/gnu/codecvt_members.cc (codecvt::do_length):
index e6ad5ebc26a2fee1b0473cc21d94449dc27d6f8b..a29538ac228c130d9e8c591a00753b1a3f50d8ce 100644 (file)
@@ -648,8 +648,6 @@ namespace std
     __numpunct_cache<_CharT>::_M_cache(const locale& __loc)
     {
       _M_allocated = true;
-      _M_grouping = NULL;
-      _M_truename = _M_falsename = NULL;
 
       const numpunct<_CharT>& __np = use_facet<numpunct<_CharT> >(__loc);