debug.cc (_Safe_sequence_base::_M_revalidate_singular): Fix pasto, advance __iter only once per iteration.

2006-10-29  Paolo Carlini  <pcarlini@suse.de>

	* src/debug.cc (_Safe_sequence_base::_M_revalidate_singular): Fix
	pasto, advance __iter only once per iteration.

From-SVN: r118159
This commit is contained in:
Paolo Carlini 2006-10-29 21:50:23 +00:00 committed by Paolo Carlini
parent c159ffe706
commit cd07aa11f9
2 changed files with 14 additions and 14 deletions

View File

@ -1,3 +1,8 @@
2006-10-29 Paolo Carlini <pcarlini@suse.de>
* src/debug.cc (_Safe_sequence_base::_M_revalidate_singular): Fix
pasto, advance __iter only once per iteration.
2006-10-29 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/29520

View File

@ -146,23 +146,18 @@ namespace __gnu_debug
__old->_M_attach(0, true);
}
}
void
void
_Safe_sequence_base::
_M_revalidate_singular()
{
_Safe_iterator_base* __iter;
for (__iter = _M_iterators; __iter; __iter = __iter->_M_next)
{
__iter->_M_version = _M_version;
__iter = __iter->_M_next;
}
for (__iter = _M_const_iterators; __iter; __iter = __iter->_M_next)
{
__iter->_M_version = _M_version;
__iter = __iter->_M_next;
}
for (_Safe_iterator_base* __iter = _M_iterators; __iter;
__iter = __iter->_M_next)
__iter->_M_version = _M_version;
for (_Safe_iterator_base* __iter2 = _M_const_iterators; __iter2;
__iter2 = __iter2->_M_next)
__iter2->_M_version = _M_version;
}
void