Mercurial > octave
diff libinterp/corefcn/oct-fstrm.cc @ 27172:b0abae0bd94b
style fixes
* oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h,
oct-stream.cc, oct-stream.h, oct-strstrm.h, procstream.cc,
procstream.h: Use m_ prefix for member variable names and other minor
style fixes.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 11 Jun 2019 12:53:55 -0500 |
parents | 00f796120a6d |
children | b442ec6dda5c |
line wrap: on
line diff
--- a/libinterp/corefcn/oct-fstrm.cc Tue Jun 11 12:50:34 2019 -0500 +++ b/libinterp/corefcn/oct-fstrm.cc Tue Jun 11 12:53:55 2019 -0500 @@ -40,11 +40,11 @@ octave_fstream::octave_fstream (const std::string& nm_arg, std::ios::openmode arg_md, octave::mach_info::float_format ff) - : octave::base_stream (arg_md, ff), nm (nm_arg) + : octave::base_stream (arg_md, ff), m_name (nm_arg) { - fs.open (nm.c_str (), arg_md); + m_fstream.open (m_name.c_str (), arg_md); - if (! fs) + if (! m_fstream) // Note: error is inherited from octave::base_stream, not ::error. error (std::strerror (errno)); } @@ -76,13 +76,13 @@ bool octave_fstream::eof (void) const { - return fs.eof (); + return m_fstream.eof (); } void octave_fstream::do_close (void) { - fs.close (); + m_fstream.close (); } std::istream * @@ -91,7 +91,7 @@ std::istream *retval = nullptr; if (mode () & std::ios::in) - retval = &fs; + retval = &m_fstream; return retval; } @@ -102,7 +102,7 @@ std::ostream *retval = nullptr; if (mode () & std::ios::out) - retval = &fs; + retval = &m_fstream; return retval; }