BView: Move tooltip release and fix small coding style issues.

This is only an optical change.
This commit is contained in:
Michael Lotz
2015-04-15 00:34:09 +02:00
parent e837ee8bc6
commit b598325acc
+5 -5
View File
@@ -704,9 +704,6 @@ BView::~BView()
"Call RemoveSelf first.");
}
if (fToolTip != NULL)
fToolTip->ReleaseReference();
// we also delete all our children
BView* child = fFirstChild;
@@ -724,9 +721,12 @@ BView::~BView()
_RemoveSelf();
if (fVerScroller)
if (fToolTip != NULL)
fToolTip->ReleaseReference();
if (fVerScroller != NULL)
fVerScroller->SetTarget((BView*)NULL);
if (fHorScroller)
if (fHorScroller != NULL)
fHorScroller->SetTarget((BView*)NULL);
SetName(NULL);