Mercurial > hg > svcore
diff data/fileio/MIDIFileWriter.cpp @ 1582:70e172e6cc59 fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:41 +0000 |
parents | 48e9f538e6e9 |
children | 24dc8cb42755 |
line wrap: on
line diff
--- a/data/fileio/MIDIFileWriter.cpp Mon Nov 26 13:51:36 2018 +0000 +++ b/data/fileio/MIDIFileWriter.cpp Mon Nov 26 14:33:41 2018 +0000 @@ -46,7 +46,7 @@ m_exportable(exportable), m_sampleRate(sampleRate), m_tempo(tempo), - m_midiFile(0) + m_midiFile(nullptr) { if (!convert()) { m_error = "Conversion from model to internal MIDI format failed"; @@ -288,7 +288,7 @@ if (!(*m_midiFile)) { m_error = "Can't open file for writing."; delete m_midiFile; - m_midiFile = 0; + m_midiFile = nullptr; return false; } @@ -304,7 +304,7 @@ m_midiFile->close(); delete m_midiFile; - m_midiFile = 0; + m_midiFile = nullptr; if (!retOK) { m_error = "MIDI file write failed";