diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-02-07 15:31:44 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-02-07 15:31:44 +0000 |
commit | aba500d6335df7fe3a7cf45eb702de36bdd68749 (patch) | |
tree | 9e6694754545715720eaed8a6e59e1d435ebd6fa /libcxx/include/string | |
parent | effd98b0f47e2bcb30e1e67305c753855dd897c3 (diff) | |
download | bcm5719-llvm-aba500d6335df7fe3a7cf45eb702de36bdd68749.tar.gz bcm5719-llvm-aba500d6335df7fe3a7cf45eb702de36bdd68749.zip |
Revert accidental check-in. These changes are probably good, but premature at this point.
llvm-svn: 174625
Diffstat (limited to 'libcxx/include/string')
-rw-r--r-- | libcxx/include/string | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libcxx/include/string b/libcxx/include/string index c99eaeaebe3..1a70467940c 100644 --- a/libcxx/include/string +++ b/libcxx/include/string @@ -2067,13 +2067,10 @@ basic_string<_CharT, _Traits, _Allocator>::__grow_by(size_type __old_cap, size_t pointer __p = __alloc_traits::allocate(__alloc(), __cap+1); __invalidate_all_iterators(); if (__n_copy != 0) - traits_type::copy(_VSTD::__to_raw_pointer(__p), - _VSTD::__to_raw_pointer(__old_p), __n_copy); + traits_type::copy(__p, __old_p, __n_copy); size_type __sec_cp_sz = __old_sz - __n_del - __n_copy; if (__sec_cp_sz != 0) - traits_type::copy(_VSTD::__to_raw_pointer(__p + __n_copy + __n_add), - _VSTD::__to_raw_pointer(__old_p + __n_copy + __n_del), - __sec_cp_sz); + traits_type::copy(__p + __n_copy + __n_add, __old_p + __n_copy + __n_del, __sec_cp_sz); if (__old_cap+1 != __min_cap) __alloc_traits::deallocate(__alloc(), __old_p, __old_cap+1); __set_long_pointer(__p); @@ -2306,7 +2303,7 @@ basic_string<_CharT, _Traits, _Allocator>::append(size_type __n, value_type __c) if (__cap - __sz < __n) __grow_by(__cap, __sz + __n - __cap, __sz, __sz, 0); pointer __p = __get_pointer(); - traits_type::assign(_VSTD::__to_raw_pointer(__p + __sz), __n, __c); + traits_type::assign(__p + __sz, __n, __c); __sz += __n; __set_size(__sz); traits_type::assign(__p[__sz], value_type()); |