Fix multiple uninitialized reads.
This commit is contained in:
Muhammed Furkan USLU authored and GitHub committed 2020-03-08 07:31:36 +01:00
1 parent b2c4f2939d
commit 4dc26d1aab
3 files changed
+6 -1

No files matched your search

+2
View File
@@ -69,6 +69,7 @@ Song::Song() :
m_oldTicksPerBar( DefaultTicksPerBar ),
m_masterVolumeModel( 100, 0, 200, this, tr( "Master volume" ) ),
m_masterPitchModel( 0, -12, 12, this, tr( "Master pitch" ) ),
m_nLoadingTrack( 0 ),
m_fileName(),
m_oldFileName(),
m_modified( false ),
@@ -79,6 +80,7 @@ Song::Song() :
m_renderBetweenMarkers( false ),
m_playing( false ),
m_paused( false ),
m_savingProject( false ),
m_loadingProject( false ),
m_isCancelled( false ),
m_playMode( Mode_None ),
+2 -1
View File
@@ -32,7 +32,8 @@ const int REMOVE_RELEASED_NOTE_TIME_THRESHOLD_MS = 70;
StepRecorder::StepRecorder(PianoRoll& pianoRoll, StepRecorderWidget& stepRecorderWidget):
m_pianoRoll(pianoRoll),
m_stepRecorderWidget(stepRecorderWidget)
m_stepRecorderWidget(stepRecorderWidget),
m_pattern(nullptr)
{
m_stepRecorderWidget.hide();
}
+2
View File
@@ -152,6 +152,8 @@ PianoRoll::PianoRoll() :
m_zoomingModel(),
m_quantizeModel(),
m_noteLenModel(),
m_scaleModel(),
m_chordModel(),
m_pattern( NULL ),
m_currentPosition(),
m_recording( false ),