[libcxx-commits] [PATCH] D154455: [NFC][libc++] Fix whitespace in sstream

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 4 11:42:16 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa4bc96d38aa7: [NFC][libc++] Fix whitespace in sstream (authored by pfusik, committed by Mordante).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154455/new/

https://reviews.llvm.org/D154455

Files:
  libcxx/include/sstream


Index: libcxx/include/sstream
===================================================================
--- libcxx/include/sstream
+++ libcxx/include/sstream
@@ -586,7 +586,7 @@
 _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 @@
 {
     if (!traits_type::eq_int_type(__c, traits_type::eof()))
     {
-        ptrdiff_t __ninp = this->gptr()  - this->eback();
+        ptrdiff_t __ninp = this->gptr() - this->eback();
         if (this->pptr() == this->epptr())
         {
             if (!(__mode_ & ios_base::out))
@@ -675,7 +675,7 @@
             try
             {
 #endif // _LIBCPP_HAS_NO_EXCEPTIONS
-                ptrdiff_t __nout = this->pptr()  - this->pbase();
+                ptrdiff_t __nout = this->pptr() - this->pbase();
                 ptrdiff_t __hm = __hm_ - this->pbase();
                 __str_.push_back(char_type());
                 __str_.resize(__str_.capacity());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154455.537143.patch
Type: text/x-patch
Size: 1271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230704/a3456060/attachment.bin>


More information about the libcxx-commits mailing list