comparison data/fileio/MIDIFileWriter.cpp @ 966:dad0fc8ff405

Fix some (probably benign) uninitialised members (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 11:00:19 +0100
parents 59e7fe1b1003
children 0d3d1ec7dfde
comparison
equal deleted inserted replaced
965:2d5a8219b4b0 966:dad0fc8ff405
39 MIDIFileWriter::MIDIFileWriter(QString path, const NoteExportable *exportable, 39 MIDIFileWriter::MIDIFileWriter(QString path, const NoteExportable *exportable,
40 int sampleRate, float tempo) : 40 int sampleRate, float tempo) :
41 m_path(path), 41 m_path(path),
42 m_exportable(exportable), 42 m_exportable(exportable),
43 m_sampleRate(sampleRate), 43 m_sampleRate(sampleRate),
44 m_tempo(tempo) 44 m_tempo(tempo),
45 m_midiFile(0)
45 { 46 {
46 if (!convert()) { 47 if (!convert()) {
47 m_error = "Conversion from model to internal MIDI format failed"; 48 m_error = "Conversion from model to internal MIDI format failed";
48 } 49 }
49 } 50 }