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:
@@ -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++)
|
||||
|
@@ -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();
|
||||
|
@@ -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())
|
||||
{
|
||||
|
@@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user