OSDN Git Service

2005-09-18 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Sep 2005 13:39:25 +0000 (13:39 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Sep 2005 13:39:25 +0000 (13:39 +0000)
PR libstdc++/23417 (cont)
* include/bits/stl_tree.h (_Rb_tree_impl<true>): Use member
initialization list for -Weffc++.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104401 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 4f618d0..8dec8fd 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-18  Paolo Carlini  <pcarlini@suse.de>
+
+       PR libstdc++/23417 (cont)
+       * include/bits/stl_tree.h (_Rb_tree_impl<true>): Use member
+       initialization list for -Weffc++.
+
 2005-09-16  Janis Johnson  <janis187@us.ibm.com>
 
        * testsuite/27_io/basic_ostream/inserters_arithmetic/char/23871.cc:
 
 2005-09-01  Benjamin Kosnik  <bkoz@redhat.com>
 
-        * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): New.
-        * testsuite/lib/dg-options.exp (dg-require-cxa-atexit): New.
-        * testsuite/ext/mt_allocator/deallocate_local-6.cc: New.
-        * testsuite/ext/mt_allocator/deallocate_local-8.cc: New.
-        * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: New.
-        * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: New.
-        * docs/html/ext/mt_allocator.html: Add link to examples.
-        * testsuite/testsuite_allocator.h: Tweak.
-        * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
-        * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
-        * testsuite/ext/new_allocator/deallocate_global.cc: Same.
-        * testsuite/ext/new_allocator/deallocate_local.cc: Same.
+       * testsuite/lib/libstdc++.exp (check_v3_target_cxa_atexit): New.
+       * testsuite/lib/dg-options.exp (dg-require-cxa-atexit): New.
+       * testsuite/ext/mt_allocator/deallocate_local-6.cc: New.
+       * testsuite/ext/mt_allocator/deallocate_local-8.cc: New.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-5.cc: New.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-7.cc: New.
+       * docs/html/ext/mt_allocator.html: Add link to examples.
+       * testsuite/testsuite_allocator.h: Tweak.
+       * testsuite/ext/mt_allocator/deallocate_global-2.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_global-4.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_global_thread-1.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_global_thread-3.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_local-2.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_local-4.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-1.cc: Same.
+       * testsuite/ext/mt_allocator/deallocate_local_thread-3.cc: Same.
+       * testsuite/ext/new_allocator/deallocate_global.cc: Same.
+       * testsuite/ext/new_allocator/deallocate_local.cc: Same.
 
 2005-08-31  Paolo Carlini  <pcarlini@suse.de>
            Kaspar Fischer <fischerk@inf.ethz.ch> 
index e5a5673..45d27b5 100644 (file)
@@ -424,7 +424,8 @@ namespace std
 
          _Rb_tree_impl(const _Node_allocator& __a = _Node_allocator(),
                        const _Key_compare& __comp = _Key_compare())
-         : _Node_allocator(__a), _M_key_compare(__comp), _M_node_count(0)
+         : _Node_allocator(__a), _M_key_compare(__comp), _M_header(),
+           _M_node_count(0)
          { 
            this->_M_header._M_color = _S_red;
            this->_M_header._M_parent = 0;