1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-16 17:41:14 +01:00

"delete"->"DELETE" in comments, easier to find remaining naked operator delete

This commit is contained in:
Paul Licameli
2016-02-14 18:50:45 -05:00
parent 6706b19af8
commit 56e7653343
56 changed files with 111 additions and 111 deletions

View File

@@ -256,7 +256,7 @@ mStreamIndex(streamIndex)
//ODDecodeBlockFiles that point to FFmpeg files.
}
//we have taken ownership, so delete the ffmpeg stuff allocated in ImportFFmpeg that was given to us.
//we have taken ownership, so DELETE the ffmpeg stuff allocated in ImportFFmpeg that was given to us.
ODFFmpegDecoder::~ODFFmpegDecoder()
{
if (FFmpegLibsInst->ValidLibsLoaded())
@@ -274,7 +274,7 @@ ODFFmpegDecoder::~ODFFmpegDecoder()
}
free(mScs);
//delete our caches.
//DELETE our caches.
while(mDecodeCache.size())
{
free(mDecodeCache[0]->samplePtr);

View File

@@ -18,7 +18,7 @@ from. For any type there should only be one ODDecodeTask associated with
a given track.
There could be the ODBlockFiles of several FLACs in one track (after copy and pasting),
so things aren't as simple as they seem - the implementation needs to be
robust enough to allow all the user changes such as copy/paste, delete, and so on.
robust enough to allow all the user changes such as copy/paste, DELETE, and so on.
*//*******************************************************************/

View File

@@ -18,7 +18,7 @@ from. For any type there should only be one ODDecodeTask associated with
a given track.
There could be the ODBlockFiles of several FLACs in one track (after copy and pasting),
so things aren't as simple as they seem - the implementation needs to be
robust enough to allow all the user changes such as copy/paste, delete, and so on.
robust enough to allow all the user changes such as copy/paste, DELETE, and so on.
*//*******************************************************************/

View File

@@ -72,7 +72,7 @@ ODManager::ODManager()
mQueueNotEmptyCond = new ODCondition(&mQueueNotEmptyCondLock);
}
//private destructor - delete with static method Quit()
//private destructor - DELETE with static method Quit()
ODManager::~ODManager()
{
//get rid of all the queues. The queues get rid of the tasks, so we don't worry abut them.
@@ -361,7 +361,7 @@ void ODManager::Quit()
pMan->mTerminate = true;
pMan->mTerminateMutex.Unlock();
//This while loop waits for ODTasks to finish and the delete removes all tasks from the Queue.
//This while loop waits for ODTasks to finish and the DELETE removes all tasks from the Queue.
//This function is called from the main audacity event thread, so there should not be more requests for pMan
pMan->mTerminatedMutex.Lock();
while(!pMan->mTerminated)
@@ -431,7 +431,7 @@ void ODManager::MakeWaveTrackIndependent(WaveTrack* track)
bool ODManager::MakeWaveTrackDependent(WaveTrack* dependentTrack,WaveTrack* masterTrack)
{
//First, check to see if the task lists are mergeable. If so, we can simply add this track to the other task and queue,
//then delete this one.
//then DELETE this one.
ODWaveTrackTaskQueue* masterQueue=NULL;
ODWaveTrackTaskQueue* dependentQueue=NULL;
unsigned int dependentIndex = 0;
@@ -494,7 +494,7 @@ void ODManager::UpdateQueues()
{
if(mQueues[i]->IsFrontTaskComplete())
{
//this should delete and remove the front task instance.
//this should DELETE and remove the front task instance.
mQueues[i]->RemoveFrontTask();
//schedule next.
if(!mQueues[i]->IsEmpty())
@@ -508,7 +508,7 @@ void ODManager::UpdateQueues()
}
}
//if the queue is empty delete it.
//if the queue is empty DELETE it.
if(mQueues[i]->IsEmpty())
{
delete mQueues[i];

View File

@@ -118,7 +118,7 @@ class ODManager
protected:
//private constructor - Singleton.
ODManager();
//private constructor - delete with static method Quit()
//private constructor - DELETE with static method Quit()
virtual ~ODManager();
///Launches a thread for the manager and starts accepting Tasks.
void Init();

View File

@@ -26,7 +26,7 @@ ODWaveTrackTaskQueue::ODWaveTrackTaskQueue()
ODWaveTrackTaskQueue::~ODWaveTrackTaskQueue()
{
//we need to delete all ODTasks. We will have to block or wait until block for the active ones.
//we need to DELETE all ODTasks. We will have to block or wait until block for the active ones.
for(unsigned int i=0;i<mTasks.size();i++)
{
mTasks[i]->TerminateAndBlock();//blocks if active.