[libcxx-commits] [libcxx] a4bc96d - [NFC][libc++] Fix whitespace in sstream
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 4 11:42:12 PDT 2023
Author: Piotr Fusik
Date: 2023-07-04T20:42:08+02:00
New Revision: a4bc96d38aa7fe7aade29982b06de8c9d94da8bd
URL: https://github.com/llvm/llvm-project/commit/a4bc96d38aa7fe7aade29982b06de8c9d94da8bd
DIFF: https://github.com/llvm/llvm-project/commit/a4bc96d38aa7fe7aade29982b06de8c9d94da8bd.diff
LOG: [NFC][libc++] Fix whitespace in sstream
Reviewed By: #libc, Mordante
Differential Revision: https://reviews.llvm.org/D154455
Added:
Modified:
libcxx/include/sstream
Removed:
################################################################################
diff --git a/libcxx/include/sstream b/libcxx/include/sstream
index 47b3634595f336..31c2423657277b 100644
--- a/libcxx/include/sstream
+++ b/libcxx/include/sstream
@@ -586,7 +586,7 @@ template <class _CharT, class _Traits, class _Allocator>
_LIBCPP_HIDE_FROM_ABI void basic_stringbuf<_CharT, _Traits, _Allocator>::__init_buf_ptrs() {
__hm_ = nullptr;
char_type* __data = const_cast<char_type*>(__str_.data());
- typename string_type::size_type __sz = __str_.size();
+ typename string_type::size_type __sz = __str_.size();
if (__mode_ & ios_base::in) {
__hm_ = __data + __sz;
this->setg(__data, __data, __hm_);
@@ -666,7 +666,7 @@ basic_stringbuf<_CharT, _Traits, _Allocator>::overflow(int_type __c)
{
if (!traits_type::eq_int_type(__c, traits_type::eof()))
{
- ptr
diff _t __ninp = this->gptr() - this->eback();
+ ptr
diff _t __ninp = this->gptr() - this->eback();
if (this->pptr() == this->epptr())
{
if (!(__mode_ & ios_base::out))
@@ -675,7 +675,7 @@ basic_stringbuf<_CharT, _Traits, _Allocator>::overflow(int_type __c)
try
{
#endif // _LIBCPP_HAS_NO_EXCEPTIONS
- ptr
diff _t __nout = this->pptr() - this->pbase();
+ ptr
diff _t __nout = this->pptr() - this->pbase();
ptr
diff _t __hm = __hm_ - this->pbase();
__str_.push_back(char_type());
__str_.resize(__str_.capacity());
More information about the libcxx-commits
mailing list