mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Minor clean-ups.
This commit is contained in:
parent
38e61f778a
commit
213b5f87ff
2 changed files with 5 additions and 9 deletions
|
|
@ -730,10 +730,8 @@ public:
|
|||
minimiseStorageAfterRemoval();
|
||||
return removed;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ElementType();
|
||||
}
|
||||
|
||||
return ElementType();
|
||||
}
|
||||
|
||||
/** Removes an item from the array.
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ public:
|
|||
ObjectType* const oldItem = item;
|
||||
item = newItem;
|
||||
item->nextListItem = oldItem->nextListItem.item;
|
||||
oldItem->nextListItem = (ObjectType*) 0;
|
||||
oldItem->nextListItem.item = nullptr;
|
||||
return oldItem;
|
||||
}
|
||||
|
||||
|
|
@ -259,7 +259,7 @@ public:
|
|||
if (oldItem != nullptr)
|
||||
{
|
||||
item = oldItem->nextListItem;
|
||||
oldItem->nextListItem = (ObjectType*) 0;
|
||||
oldItem->nextListItem.item = nullptr;
|
||||
}
|
||||
|
||||
return oldItem;
|
||||
|
|
@ -270,9 +270,7 @@ public:
|
|||
*/
|
||||
void remove (ObjectType* const itemToRemove)
|
||||
{
|
||||
LinkedListPointer* const l = findPointerTo (itemToRemove);
|
||||
|
||||
if (l != nullptr)
|
||||
if (LinkedListPointer* const l = findPointerTo (itemToRemove))
|
||||
l->removeNext();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue