sso_string_base.h (__sso_string_base<>::_M_reserve): Simplify.

2005-12-04  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/sso_string_base.h (__sso_string_base<>::_M_reserve):
	Simplify.

From-SVN: r108036
This commit is contained in:
Paolo Carlini 2005-12-05 01:57:59 +00:00 committed by Paolo Carlini
parent cf8829194f
commit 56540d20c2
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-12-04 Paolo Carlini <pcarlini@suse.de>
* include/ext/sso_string_base.h (__sso_string_base<>::_M_reserve):
Simplify.
2005-12-04 Paolo Carlini <pcarlini@suse.de>
* include/ext/vstring.h (__versa_string<>::operator+, all

View File

@ -497,9 +497,8 @@ namespace __gnu_cxx
}
else if (!_M_is_local())
{
const size_type __tmp_capacity = _M_allocated_capacity;
_S_copy(_M_local_data, _M_data(), _M_length() + 1);
_M_destroy(__tmp_capacity + 1);
_M_destroy(__capacity + 1);
_M_data(_M_local_data);
}
}