diff options
Diffstat (limited to 'svtools/source/control')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 10 | ||||
-rw-r--r-- | svtools/source/control/inettbc.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/urlcontrol.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/valueset.cxx | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 2be6e63e770f..c7926f10357f 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -110,7 +110,7 @@ VCL_BUILDER_DECL_FACTORY(ColorListBox) WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP; if (bDropdown) nWinBits |= WB_DROPDOWN; - ColorListBox *pListBox = new ColorListBox(pParent, nWinBits); + VclPtrInstance<ColorListBox> pListBox(pParent, nWinBits); if (bDropdown) pListBox->EnableAutoSize(true); return pListBox; @@ -742,7 +742,7 @@ VCL_BUILDER_DECL_FACTORY(LineListBox) WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP; if (bDropdown) nWinBits |= WB_DROPDOWN; - LineListBox *pListBox = new LineListBox(pParent, nWinBits); + VclPtrInstance<LineListBox> pListBox(pParent, nWinBits); if (bDropdown) pListBox->EnableAutoSize(true); return pListBox; @@ -945,7 +945,7 @@ VCL_BUILDER_DECL_FACTORY(FontNameBox) WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP; if (bDropdown) nWinBits |= WB_DROPDOWN; - FontNameBox *pListBox = new FontNameBox(pParent, nWinBits); + VclPtrInstance<FontNameBox> pListBox(pParent, nWinBits); if (bDropdown) pListBox->EnableAutoSize(true); return pListBox; @@ -1333,7 +1333,7 @@ VCL_BUILDER_DECL_FACTORY(FontStyleBox) WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP; if (bDropdown) nWinBits |= WB_DROPDOWN; - FontStyleBox *pListBox = new FontStyleBox(pParent, nWinBits); + VclPtrInstance<FontStyleBox> pListBox(pParent, nWinBits); if (bDropdown) pListBox->EnableAutoSize(true); return pListBox; @@ -1529,7 +1529,7 @@ VCL_BUILDER_DECL_FACTORY(FontSizeBox) WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP; if (bDropdown) nWinBits |= WB_DROPDOWN; - FontSizeBox* pListBox = new FontSizeBox(pParent, nWinBits); + VclPtrInstance<FontSizeBox> pListBox(pParent, nWinBits); if (bDropdown) pListBox->EnableAutoSize(true); return pListBox; diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index fe9a3ac034e8..29b7eec8c88e 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -868,7 +868,7 @@ VCL_BUILDER_DECL_FACTORY(SvtURLBox) (void)rMap; WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP| WB_DROPDOWN|WB_AUTOSIZE|WB_AUTOHSCROLL; - SvtURLBox* pListBox = new SvtURLBox(pParent, nWinBits, INetProtocol::NotValid, false); + VclPtrInstance<SvtURLBox> pListBox(pParent, nWinBits, INetProtocol::NotValid, false); pListBox->EnableAutoSize(true); return pListBox; } diff --git a/svtools/source/control/urlcontrol.cxx b/svtools/source/control/urlcontrol.cxx index 8a268d75e4c8..6edcd8ee0bfe 100644 --- a/svtools/source/control/urlcontrol.cxx +++ b/svtools/source/control/urlcontrol.cxx @@ -36,7 +36,7 @@ namespace svt (void)rMap; WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP| WB_DROPDOWN|WB_AUTOSIZE|WB_AUTOHSCROLL; - OFileURLControl* pListBox = new OFileURLControl(pParent, nWinBits); + VclPtrInstance<OFileURLControl> pListBox(pParent, nWinBits); pListBox->EnableAutoSize(true); return pListBox; } diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 28bee3593a83..070e16aca71a 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -111,7 +111,7 @@ VCL_BUILDER_DECL_FACTORY(ValueSet) if (!sBorder.isEmpty()) nWinBits |= WB_BORDER; - return new ValueSet(pParent, nWinBits); + return VclPtr<ValueSet>::Create(pParent, nWinBits); } ValueSet::ValueSet( vcl::Window* pParent, const ResId& rResId, bool bDisableTransientChildren ) : |