From 8a65284fe31e6c0a927cb88b75df7845cd248572 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 31 Mar 2015 23:04:14 +0100 Subject: Automated conversion of VclPtr construction to use Instance template. Change-Id: I8be9141b9653e73ebd23a5a3d810f240c376f97e --- desktop/source/pkgchk/unopkg/unopkg_misc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/source/pkgchk') diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx index a7e4789929ac..d86a455238cf 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx @@ -472,7 +472,7 @@ Reference getUNO( if ( ! InitVCL() ) throw RuntimeException( "Cannot initialize VCL!" ); { - ScopedVclPtr warn(new WarningBox(NULL, WB_OK | WB_DEF_OK, sMsg)); + ScopedVclPtrInstance< WarningBox > warn(nullptr, WB_OK | WB_DEF_OK, sMsg); warn->SetText(utl::ConfigManager::getProductName()); warn->SetIcon(0); warn->Execute(); -- cgit