Skip to content

Commit

Permalink
Initialize member variable in contructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
craigsapp committed Sep 10, 2024
1 parent 9363a51 commit bf6b697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/vrv/toolkit.h
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ class Toolkit {
* Temporary storage of the std::cerr read buffer during LogCapture. NULL when not in use.
* Used to coordinate between LogRedirectStart()/LogRedirectStop().
*/
std::streambuf *m_original_cerr_buf = NULL;
std::streambuf *m_original_cerr_buf;

EditorToolkit *m_editorToolkit;

Expand Down
2 changes: 2 additions & 0 deletions src/toolkit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ Toolkit::Toolkit(bool initFont)
m_humdrumBuffer = NULL;
m_cString = NULL;

m_original_cerr_buf = NULL;

if (initFont) {
Resources &resources = m_doc.GetResourcesForModification();
resources.InitFonts();
Expand Down

0 comments on commit bf6b697

Please sign in to comment.