summaryrefslogtreecommitdiff
path: root/cui/source/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx2
-rw-r--r--cui/source/dialogs/colorpicker.cxx6
-rw-r--r--cui/source/dialogs/cuigrfflt.cxx2
-rw-r--r--cui/source/dialogs/hlmarkwn.cxx2
4 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index a27774cc717b..a20bb6e14f5a 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -1222,7 +1222,7 @@ SentenceEditWindow_Impl::SentenceEditWindow_Impl(vcl::Window * pParent, WinBits
VCL_BUILDER_DECL_FACTORY(SentenceEditWindow)
{
(void)rMap;
- return new SentenceEditWindow_Impl(pParent, WB_BORDER|WB_VSCROLL|WB_IGNORETAB);
+ return VclPtr<SentenceEditWindow_Impl>::Create(pParent, WB_BORDER|WB_VSCROLL|WB_IGNORETAB);
}
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index ee90eb7e17d3..cf487f1b0ebf 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -280,7 +280,7 @@ VCL_BUILDER_DECL_FACTORY(ColorPreviewControl)
if (!sBorder.isEmpty())
nBits |= WB_BORDER;
- return new ColorPreviewControl(pParent, nBits);
+ return VclPtr<ColorPreviewControl>::Create(pParent, nBits);
}
void ColorPreviewControl::SetColor( const Color& rCol )
@@ -376,7 +376,7 @@ VCL_BUILDER_DECL_FACTORY(ColorFieldControl)
if (!sBorder.isEmpty())
nBits |= WB_BORDER;
- return new ColorFieldControl(pParent, nBits);
+ return VclPtr<ColorFieldControl>::Create(pParent, nBits);
}
Size ColorFieldControl::GetOptimalSize() const
@@ -769,7 +769,7 @@ VCL_BUILDER_DECL_FACTORY(ColorSliderControl)
if (!sBorder.isEmpty())
nBits |= WB_BORDER;
- return new ColorSliderControl(pParent, nBits);
+ return VclPtr<ColorSliderControl>::Create(pParent, nBits);
}
void ColorSliderControl::UpdateBitmap()
diff --git a/cui/source/dialogs/cuigrfflt.cxx b/cui/source/dialogs/cuigrfflt.cxx
index 2edac2d05d81..fdba7520c79a 100644
--- a/cui/source/dialogs/cuigrfflt.cxx
+++ b/cui/source/dialogs/cuigrfflt.cxx
@@ -45,7 +45,7 @@ VCL_BUILDER_DECL_FACTORY(GraphicPreviewWindow)
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
- return new GraphicPreviewWindow(pParent, nWinBits);
+ return VclPtr<GraphicPreviewWindow>::Create(pParent, nWinBits);
}
Size GraphicPreviewWindow::GetOptimalSize() const
diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx
index b65bf8c4522b..6572fcb0b1bf 100644
--- a/cui/source/dialogs/hlmarkwn.cxx
+++ b/cui/source/dialogs/hlmarkwn.cxx
@@ -90,7 +90,7 @@ VCL_BUILDER_DECL_FACTORY(SvxHlmarkTreeLBox)
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinStyle |= WB_BORDER;
- return new SvxHlmarkTreeLBox(pParent, nWinStyle);
+ return VclPtr<SvxHlmarkTreeLBox>::Create(pParent, nWinStyle);
}
Size SvxHlmarkTreeLBox::GetOptimalSize() const