diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-11 14:02:42 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-11 15:12:08 +0100 |
commit | 9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c (patch) | |
tree | c32e463b68bad8cfc1ab9f69792b8c10071515bf /sd | |
parent | editing/experimental mode as user-preference (Android Viewer) (diff) | |
download | core-9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c.tar.gz core-9f016bd69422bdfb4cf7c4f5e57356eb98db2d8c.zip |
Switch VclBuilder constructors to use VclPtr.
Change-Id: Id35a86eb52bbde6ca09a5e61a0b1a79b23be8faf
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/html/htmlattr.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/RemoteDialogClientBox.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/dlgassim.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/dlgctrls.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/docprev.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/filter/html/htmlattr.cxx b/sd/source/filter/html/htmlattr.cxx index 3f4db20ae2ed..403da9e996c9 100644 --- a/sd/source/filter/html/htmlattr.cxx +++ b/sd/source/filter/html/htmlattr.cxx @@ -35,7 +35,7 @@ VCL_BUILDER_DECL_FACTORY(SdHtmlAttrPreview) if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SdHtmlAttrPreview(pParent, nWinStyle); + return VclPtr<SdHtmlAttrPreview>::Create(pParent, nWinStyle); } SdHtmlAttrPreview::~SdHtmlAttrPreview() diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx index 4c8bcf9df530..0aca3c7fbfbd 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx @@ -115,7 +115,7 @@ VCL_BUILDER_DECL_FACTORY(ClientBox) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new ClientBox(pParent, nWinStyle); + return VclPtr<ClientBox>::Create(pParent, nWinStyle); } Size ClientBox::GetOptimalSize() const diff --git a/sd/source/ui/dlg/dlgassim.cxx b/sd/source/ui/dlg/dlgassim.cxx index 2c308f7a2021..b281431d3de2 100644 --- a/sd/source/ui/dlg/dlgassim.cxx +++ b/sd/source/ui/dlg/dlgassim.cxx @@ -55,7 +55,7 @@ VCL_BUILDER_DECL_FACTORY(SdPageListControl) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SdPageListControl(pParent, nWinStyle); + return VclPtr<SdPageListControl>::Create(pParent, nWinStyle); } IMPL_LINK_NOARG(SdPageListControl, CheckButtonClickHdl) diff --git a/sd/source/ui/dlg/dlgctrls.cxx b/sd/source/ui/dlg/dlgctrls.cxx index 325632103449..8eda4c4ee1e1 100644 --- a/sd/source/ui/dlg/dlgctrls.cxx +++ b/sd/source/ui/dlg/dlgctrls.cxx @@ -81,7 +81,7 @@ VCL_BUILDER_DECL_FACTORY(FadeEffectLB) if (bDropdown) nBits |= WB_DROPDOWN; - return new FadeEffectLB(pParent, nBits); + return VclPtr<FadeEffectLB>::Create(pParent, nBits); } void FadeEffectLB::applySelected( SdPage* pSlide ) const diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index e0cba089de3e..6e71e3c0412d 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -70,7 +70,7 @@ VCL_BUILDER_DECL_FACTORY(SdDocPreviewWin) if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SdDocPreviewWin(pParent, nWinStyle); + return VclPtr<SdDocPreviewWin>::Create(pParent, nWinStyle); } SdDocPreviewWin::SdDocPreviewWin( vcl::Window* pParent, const WinBits nStyle ) diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 0a3c3f4f2dec..4a1bf4b8a1d5 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -104,7 +104,7 @@ VCL_BUILDER_DECL_FACTORY(SdPageObjsTLB) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new SdPageObjsTLB(pParent, nWinStyle); + return VclPtr<SdPageObjsTLB>::Create(pParent, nWinStyle); } SdPageObjsTLB::SdPageObjsTransferable::~SdPageObjsTransferable() diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index a4ecc26871b9..0d708e6a7c5c 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -372,7 +372,7 @@ VCL_BUILDER_DECL_FACTORY(TableValueSet) OString sBorder = VclBuilder::extractCustomProperty(rMap); if (!sBorder.isEmpty()) nWinStyle |= WB_BORDER; - return new TableValueSet(pParent, nWinStyle); + return VclPtr<TableValueSet>::Create(pParent, nWinStyle); } void TableDesignWidget::updateControls() |