1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-17 08:01:12 +02:00

More const and override

This commit is contained in:
Paul Licameli
2017-02-22 14:23:35 -05:00
parent 9ddb5bb1f3
commit 81285ee0c1
59 changed files with 193 additions and 165 deletions

View File

@@ -525,7 +525,7 @@ bool ODManager::HasLoadedODFlag()
}
///fills in the status bar message for a given track
void ODManager::FillTipForWaveTrack( WaveTrack * t, wxString &tip )
void ODManager::FillTipForWaveTrack( const WaveTrack * t, wxString &tip )
{
mQueuesMutex.Lock();
for(unsigned int i=0;i<mQueues.size();i++)

View File

@@ -98,7 +98,7 @@ class ODManager final
static bool IsInstanceCreated();
///fills in the status bar message for a given track
void FillTipForWaveTrack( WaveTrack * t, wxString &tip );
void FillTipForWaveTrack( const WaveTrack * t, wxString &tip );
///Gets the total percent complete for all tasks combined.
float GetOverallPercentComplete();

View File

@@ -76,7 +76,7 @@ void ODWaveTrackTaskQueue::MergeWaveTrack(WaveTrack* track)
}
///returns true if the argument is in the WaveTrack list.
bool ODWaveTrackTaskQueue::ContainsWaveTrack(WaveTrack* track)
bool ODWaveTrackTaskQueue::ContainsWaveTrack(const WaveTrack* track)
{
mTracksMutex.Lock();
for(unsigned int i=0;i<mTracks.size();i++)
@@ -326,7 +326,7 @@ ODTask* ODWaveTrackTaskQueue::GetFrontTask()
}
///fills in the status bar message for a given track
void ODWaveTrackTaskQueue::FillTipForWaveTrack( WaveTrack * t, wxString &tip )
void ODWaveTrackTaskQueue::FillTipForWaveTrack( const WaveTrack * t, wxString &tip )
{
if(ContainsWaveTrack(t) && GetNumTasks())
{

View File

@@ -63,7 +63,7 @@ class ODWaveTrackTaskQueue final
//returns true if the agrument is in the WaveTrack list.
bool ContainsWaveTrack(WaveTrack* track);
bool ContainsWaveTrack(const WaveTrack* track);
//returns the wavetrack at position x.
WaveTrack* GetWaveTrack(size_t x);
@@ -93,7 +93,7 @@ class ODWaveTrackTaskQueue final
ODTask* GetTask(size_t x);
///fills in the status bar message for a given track
void FillTipForWaveTrack( WaveTrack * t, wxString &tip );
void FillTipForWaveTrack( const WaveTrack * t, wxString &tip );
protected: