mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Minor code clean-ups.
This commit is contained in:
parent
cc45ec88f5
commit
6bcc8febca
25 changed files with 246 additions and 380 deletions
|
|
@ -451,8 +451,6 @@ private:
|
|||
TreeView::TreeView (const String& componentName)
|
||||
: Component (componentName),
|
||||
rootItem (0),
|
||||
dragInsertPointHighlight (0),
|
||||
dragTargetGroupHighlight (0),
|
||||
indentSize (24),
|
||||
defaultOpenness (false),
|
||||
needsRecalculating (true),
|
||||
|
|
@ -470,8 +468,6 @@ TreeView::~TreeView()
|
|||
{
|
||||
if (rootItem != 0)
|
||||
rootItem->setOwnerView (0);
|
||||
|
||||
deleteAllChildren();
|
||||
}
|
||||
|
||||
void TreeView::setRootItem (TreeViewItem* const newRootItem)
|
||||
|
|
@ -937,8 +933,8 @@ void TreeView::showDragHighlight (TreeViewItem* item, int insertIndex, int x, in
|
|||
|
||||
void TreeView::hideDragHighlight() throw()
|
||||
{
|
||||
deleteAndZero (dragInsertPointHighlight);
|
||||
deleteAndZero (dragTargetGroupHighlight);
|
||||
dragInsertPointHighlight = 0;
|
||||
dragTargetGroupHighlight = 0;
|
||||
}
|
||||
|
||||
TreeViewItem* TreeView::getInsertPosition (int& x, int& y, int& insertIndex,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue