# HG changeset patch # User Rik # Date 1631593754 25200 # Node ID dbfa0f70d9bdb2f35564dca12c5bc88ab768c23e # Parent 7bac3fb3d6b6e5fab6d3112846691b9f3c5b3079 maint: use "m_" prefix for member variables in class tstdiostream. * oct-stdstrm.h: Use "m_" prefix for member variables in class tstdiostream. diff -r 7bac3fb3d6b6 -r dbfa0f70d9bd libinterp/corefcn/oct-stdstrm.h --- 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 (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