summaryrefslogtreecommitdiff
path: root/vcl/source/uipreviewer/previewer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/uipreviewer/previewer.cxx')
-rw-r--r--vcl/source/uipreviewer/previewer.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/uipreviewer/previewer.cxx b/vcl/source/uipreviewer/previewer.cxx
index 20074297e5a5..bb93b1207dd8 100644
--- a/vcl/source/uipreviewer/previewer.cxx
+++ b/vcl/source/uipreviewer/previewer.cxx
@@ -68,8 +68,7 @@ int UIPreviewApp::Main()
try
{
- VclPtr<Dialog> pDialog = new Dialog(DIALOG_NO_PARENT, WB_STDDIALOG | WB_SIZEABLE);
-
+ VclPtrInstance<Dialog> pDialog(DIALOG_NO_PARENT, WB_STDDIALOG | WB_SIZEABLE);
{
VclBuilder aBuilder(pDialog, OUString(), uifiles[0]);
vcl::Window *pRoot = aBuilder.get_widget_root();