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:
parent
cf8829194f
commit
56540d20c2
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user