comparison data/model/WaveFileModel.cpp @ 971:9869ea3a93b7

Fix some (probably benign) uninitialised members (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 11:09:26 +0100
parents 6d2ece0fe356
children 36f79bc5c3d7
comparison
equal deleted inserted replaced
970:bfe724787abf 971:9869ea3a93b7
38 WaveFileModel::m_zoomConstraint; 38 WaveFileModel::m_zoomConstraint;
39 39
40 WaveFileModel::WaveFileModel(FileSource source, int targetRate) : 40 WaveFileModel::WaveFileModel(FileSource source, int targetRate) :
41 m_source(source), 41 m_source(source),
42 m_path(source.getLocation()), 42 m_path(source.getLocation()),
43 m_reader(0),
43 m_myReader(true), 44 m_myReader(true),
44 m_startFrame(0), 45 m_startFrame(0),
45 m_fillThread(0), 46 m_fillThread(0),
46 m_updateTimer(0), 47 m_updateTimer(0),
47 m_lastFillExtent(0), 48 m_lastFillExtent(0),
65 } 66 }
66 67
67 WaveFileModel::WaveFileModel(FileSource source, AudioFileReader *reader) : 68 WaveFileModel::WaveFileModel(FileSource source, AudioFileReader *reader) :
68 m_source(source), 69 m_source(source),
69 m_path(source.getLocation()), 70 m_path(source.getLocation()),
71 m_reader(0),
70 m_myReader(false), 72 m_myReader(false),
71 m_startFrame(0), 73 m_startFrame(0),
72 m_fillThread(0), 74 m_fillThread(0),
73 m_updateTimer(0), 75 m_updateTimer(0),
74 m_lastFillExtent(0), 76 m_lastFillExtent(0),