]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/23417 (bits/stl_tree.h isn't -Weffc++ clean)
authorBenjamin Kosnik <bkoz@redhat.com>
Mon, 12 Sep 2005 20:32:54 +0000 (20:32 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 12 Sep 2005 20:32:54 +0000 (20:32 +0000)
2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>

PR libstdc++/23417
* include/bits/stl_list.h (_List_impl): Use member initialization
list for -Weffc++.
* include/bits/stl_tree.h (_Rb_tree_impl): Same.

From-SVN: r104191

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

index 9b969403f58d6c9d509fa3662bb5899c50a69e6f..4c8db926d2b47b47de97e113aabaf4cd34bb2518 100644 (file)
@@ -3,6 +3,7 @@
        PR libstdc++/23417
        * include/bits/stl_list.h (_List_impl): Use member initialization
        list for -Weffc++.
+       * include/bits/stl_tree.h (_Rb_tree_impl): Same.
 
 2005-09-12  Paolo Carlini  <pcarlini@suse.de>
 
index fab8117edbe43ac8b62d6cb311d22cfdf607d378..e5a56737978a2c0456c2ac049b01ad55cb0dc613 100644 (file)
@@ -403,7 +403,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;