summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/funcutl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx
index 9355b5e1ebb1..b119122f3c96 100644
--- a/formula/source/ui/dlg/funcutl.cxx
+++ b/formula/source/ui/dlg/funcutl.cxx
@@ -489,7 +489,7 @@ RefEdit::RefEdit( vcl::Window* _pParent,IControlReferenceHandler* pParent,
VCL_BUILDER_DECL_FACTORY(RefEdit)
{
(void)rMap;
- return new RefEdit(pParent, NULL, WB_BORDER);
+ return VclPtr<RefEdit>::Create(pParent, nullptr, WB_BORDER);
}
RefEdit::~RefEdit()