# HG changeset patch # User Rik # Date 1631244456 25200 # Node ID bba8b70c201f0422edefccf218b132c315a27ff1 # Parent 870687a59e968bea47f90d4139463fbe6d3ec018 maint: use "m_" prefix for member variables in class diary_stream. * pager.cc, pager.h: Use "m_" prefix for member variables in class diary_stream. diff -r 870687a59e96 -r bba8b70c201f libinterp/corefcn/pager.cc --- a/libinterp/corefcn/pager.cc Thu Sep 09 20:12:01 2021 -0700 +++ b/libinterp/corefcn/pager.cc Thu Sep 09 20:27:36 2021 -0700 @@ -226,17 +226,17 @@ setf (unitbuf); } - diary_stream::diary_stream (void) : std::ostream (nullptr), db (nullptr) + diary_stream::diary_stream (void) : std::ostream (nullptr), m_db (nullptr) { - db = new diary_buf (); - rdbuf (db); + m_db = new diary_buf (); + rdbuf (m_db); setf (unitbuf); } diary_stream::~diary_stream (void) { flush (); - delete db; + delete m_db; } std::ostream& diary_stream::stream (void) @@ -251,9 +251,9 @@ void diary_stream::reset (void) { - delete db; - db = new diary_buf (); - rdbuf (db); + delete m_db; + m_db = new diary_buf (); + rdbuf (m_db); setf (unitbuf); } diff -r 870687a59e96 -r bba8b70c201f libinterp/corefcn/pager.h --- a/libinterp/corefcn/pager.h Thu Sep 09 20:12:01 2021 -0700 +++ b/libinterp/corefcn/pager.h Thu Sep 09 20:27:36 2021 -0700 @@ -126,7 +126,7 @@ private: - diary_buf *db; + diary_buf *m_db; }; extern OCTINTERP_API void flush_stdout (void);