Commit e020783c by Jonathan Wakely Committed by Jonathan Wakely

Fix indentation in std::basic_filebuf member functions

	* include/bits/fstream.tcc (basic_filebuf::xsgetn)
	(basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.

From-SVN: r250353
parent 8f860bca
2017-07-19 Jonathan Wakely <jwakely@redhat.com> 2017-07-19 Jonathan Wakely <jwakely@redhat.com>
* include/bits/fstream.tcc (basic_filebuf::xsgetn)
(basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.
* testsuite/util/testsuite_iterators.h: Fix indentation. * testsuite/util/testsuite_iterators.h: Fix indentation.
* testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require. * testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require.
......
...@@ -670,8 +670,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -670,8 +670,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{ {
traits_type::copy(__s, this->gptr(), __avail); traits_type::copy(__s, this->gptr(), __avail);
__s += __avail; __s += __avail;
this->setg(this->eback(), this->gptr() + __avail, this->setg(this->eback(), this->gptr() + __avail, this->egptr());
this->egptr());
__ret += __avail; __ret += __avail;
__n -= __avail; __n -= __avail;
} }
...@@ -681,8 +680,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -681,8 +680,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
streamsize __len; streamsize __len;
for (;;) for (;;)
{ {
__len = _M_file.xsgetn(reinterpret_cast<char*>(__s), __len = _M_file.xsgetn(reinterpret_cast<char*>(__s), __n);
__n);
if (__len == -1) if (__len == -1)
__throw_ios_failure(__N("basic_filebuf::xsgetn " __throw_ios_failure(__N("basic_filebuf::xsgetn "
"error reading the file")); "error reading the file"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment