diff options
Diffstat (limited to 'vcl/source/control/scrbar.cxx')
-rw-r--r-- | vcl/source/control/scrbar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index f34201af2a03..4efc0c807061 100644 --- a/vcl/source/control/scrbar.cxx +++ b/vcl/source/control/scrbar.cxx @@ -115,7 +115,7 @@ ScrollBar::~ScrollBar() void ScrollBar::dispose() { - delete mpData; mpData = nullptr; + mpData.reset(); Control::dispose(); } @@ -1137,7 +1137,7 @@ void ScrollBar::GetFocus() { if( !mpData ) { - mpData = new ImplScrollBarData; + mpData.reset(new ImplScrollBarData); mpData->maTimer.SetInvokeHandler( LINK( this, ScrollBar, ImplAutoTimerHdl ) ); mpData->maTimer.SetDebugName( "vcl::ScrollBar mpData->maTimer" ); mpData->mbHide = false; |