Mercurial > octave-libtiff
changeset 30172:dbfa0f70d9bd
maint: use "m_" prefix for member variables in class tstdiostream.
* oct-stdstrm.h: Use "m_" prefix for member variables in class tstdiostream.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 13 Sep 2021 21:29:14 -0700 |
parents | 7bac3fb3d6b6 |
children | f8ee588f1c7d |
files | libinterp/corefcn/oct-stdstrm.h |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/oct-stdstrm.h Mon Sep 13 21:16:35 2021 -0700 +++ b/libinterp/corefcn/oct-stdstrm.h Mon Sep 13 21:29:14 2021 -0700 @@ -47,7 +47,7 @@ const std::string& encoding = "utf-8", typename BUF_T::close_fcn cf = BUF_T::file_close) : base_stream (m, ff, encoding), m_name (n), m_mode (m), - m_stream (f ? new STREAM_T (f, cf) : nullptr), fnum (fid) + m_stream (f ? new STREAM_T (f, cf) : nullptr), m_fnum (fid) { } // No copying! @@ -91,7 +91,7 @@ return m_stream ? (const_cast<STREAM_T *> (m_stream))->rdbuf () : nullptr; } - int file_number (void) const { return fnum; } + int file_number (void) const { return m_fnum; } bool bad (void) const { return m_stream ? m_stream->bad () : true; } @@ -109,6 +109,10 @@ protected: + ~tstdiostream (void) { delete m_stream; } + + //-------- + std::string m_name; std::ios::openmode m_mode; @@ -116,9 +120,7 @@ STREAM_T *m_stream; // The file number associated with this file. - int fnum; - - ~tstdiostream (void) { delete m_stream; } + int m_fnum; }; class