1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a few Array::removeValue calls that I'd missed..

This commit is contained in:
jules 2012-07-07 22:23:47 +01:00
parent 0475cedff5
commit a866a9c2cf
5 changed files with 6 additions and 6 deletions

View file

@ -108,7 +108,7 @@ PluginWindow* PluginWindow::getWindowFor (AudioProcessorGraph::Node* node,
PluginWindow::~PluginWindow()
{
activePluginWindows.removeValue (this);
activePluginWindows.removeFirstMatchingValue (this);
clearContentComponent();
}

View file

@ -45,7 +45,7 @@ TestComponent::TestComponent (JucerDocument* const ownerDocument_,
TestComponent::~TestComponent()
{
testComponents.removeValue (this);
testComponents.removeFirstMatchingValue (this);
deleteAllChildren();
delete loadedDocument;
}

View file

@ -311,7 +311,7 @@ public:
deleteTempChannels();
jassert (activePlugins.contains (this));
activePlugins.removeValue (this);
activePlugins.removeFirstMatchingValue (this);
}
if (activePlugins.size() == 0)

View file

@ -145,7 +145,7 @@ public:
void removeListener (CameraDevice::Listener* listenerToRemove)
{
const ScopedLock sl (listenerLock);
listeners.removeValue (listenerToRemove);
listeners.removeFirstMatchingValue (listenerToRemove);
if (listeners.size() == 0)
[session removeOutput: imageOutput];

View file

@ -400,7 +400,7 @@ public:
void removeListener (CameraDevice::Listener* listenerToRemove)
{
const ScopedLock sl (listenerLock);
listeners.removeValue (listenerToRemove);
listeners.removeFirstMatchingValue (listenerToRemove);
if (listeners.size() == 0)
removeUser();
@ -438,7 +438,7 @@ public:
{
if (owner != nullptr)
{
owner->viewerComps.removeValue (this);
owner->viewerComps.removeFirstMatchingValue (this);
owner->removeUser();
owner->removeChangeListener (this);
}