re PR libstdc++/23417 (bits/stl_tree.h isn't -Weffc++ clean)

2005-09-12  Benjamin Kosnik  <bkoz@redhat.com>

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

From-SVN: r104187
This commit is contained in:
Benjamin Kosnik 2005-09-12 19:48:04 +00:00 committed by Benjamin Kosnik
parent c8b3a7929b
commit dbc564aea3
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-09-12 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/23417
* include/bits/stl_list.h (_List_impl): Use member initialization
list for -Weffc++.
2005-09-12 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/23767

View File

@ -303,8 +303,9 @@ namespace _GLIBCXX_STD
: public _Node_alloc_type
{
_List_node_base _M_node;
_List_impl(const _Node_alloc_type& __a)
: _Node_alloc_type(__a)
: _Node_alloc_type(__a), _M_node()
{ }
};