1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Minor code clean-ups.

This commit is contained in:
Julian Storer 2010-06-10 10:09:24 +01:00
parent cc45ec88f5
commit 6bcc8febca
25 changed files with 246 additions and 380 deletions

View file

@ -91,9 +91,7 @@ ScrollBar::ScrollBar (const bool vertical_,
minimumDelayInMillisecs (10),
vertical (vertical_),
isDraggingThumb (false),
autohides (true),
upButton (0),
downButton (0)
autohides (true)
{
setButtonVisibility (buttonsAreVisible);
@ -103,7 +101,8 @@ ScrollBar::ScrollBar (const bool vertical_,
ScrollBar::~ScrollBar()
{
deleteAllChildren();
upButton = 0;
downButton = 0;
}
//==============================================================================
@ -256,9 +255,7 @@ void ScrollBar::setOrientation (const bool shouldBeVertical)
void ScrollBar::setButtonVisibility (const bool buttonsAreVisible)
{
delete upButton;
upButton = 0;
delete downButton;
downButton = 0;
if (buttonsAreVisible)