summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/ControlFactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/sidebar/ControlFactory.cxx')
-rw-r--r--sfx2/source/sidebar/ControlFactory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/ControlFactory.cxx b/sfx2/source/sidebar/ControlFactory.cxx
index d8a49b3dd148..1376f9ee9961 100644
--- a/sfx2/source/sidebar/ControlFactory.cxx
+++ b/sfx2/source/sidebar/ControlFactory.cxx
@@ -27,12 +27,12 @@ namespace sfx2 { namespace sidebar {
VclPtr<CheckBox> ControlFactory::CreateMenuButton (vcl::Window* pParentWindow)
{
- return VclPtr<CheckBox>(new MenuButton(pParentWindow), SAL_NO_ACQUIRE);
+ return VclPtr<MenuButton>::Create(pParentWindow);
}
VclPtr<ImageRadioButton> ControlFactory::CreateTabItem (vcl::Window* pParentWindow)
{
- return VclPtr<ImageRadioButton>(new TabItem(pParentWindow), SAL_NO_ACQUIRE);
+ return VclPtr<TabItem>::Create(pParentWindow);
}
} } // end of namespace sfx2::sidebar