diff options
Diffstat (limited to 'sd/source/ui/view/ViewTabBar.cxx')
-rw-r--r-- | sd/source/ui/view/ViewTabBar.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/view/ViewTabBar.cxx b/sd/source/ui/view/ViewTabBar.cxx index f8ca2e57aae2..6fcd11a5f692 100644 --- a/sd/source/ui/view/ViewTabBar.cxx +++ b/sd/source/ui/view/ViewTabBar.cxx @@ -82,7 +82,7 @@ ViewTabBar::ViewTabBar ( const Reference<XResourceId>& rxViewTabBarId, const Reference<frame::XController>& rxController) : ViewTabBarInterfaceBase(maMutex), - mpTabControl(new TabBarControl(GetAnchorWindow(rxViewTabBarId,rxController), this)), + mpTabControl(VclPtr<TabBarControl>::Create(GetAnchorWindow(rxViewTabBarId,rxController), this)), mxController(rxController), maTabBarButtons(), mpTabPage(NULL), @@ -167,8 +167,8 @@ void ViewTabBar::disposing() // Set all references to the one tab page to NULL and delete the page. for (sal_uInt16 nIndex=0; nIndex<mpTabControl->GetPageCount(); ++nIndex) mpTabControl->SetTabPage(nIndex, NULL); - mpTabPage.reset(); - mpTabControl.reset(); + mpTabPage.disposeAndClear(); + mpTabControl.disposeAndClear(); } mxController = NULL; |