diff options
Diffstat (limited to 'desktop/source/pkgchk/unopkg/unopkg_misc.cxx')
-rw-r--r-- | desktop/source/pkgchk/unopkg/unopkg_misc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx index b4ab62a5a309..d86a455238cf 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx @@ -472,10 +472,10 @@ Reference<XComponentContext> getUNO( if ( ! InitVCL() ) throw RuntimeException( "Cannot initialize VCL!" ); { - WarningBox warn(NULL, WB_OK | WB_DEF_OK, sMsg); - warn.SetText(utl::ConfigManager::getProductName()); - warn.SetIcon(0); - warn.Execute(); + ScopedVclPtrInstance< WarningBox > warn(nullptr, WB_OK | WB_DEF_OK, sMsg); + warn->SetText(utl::ConfigManager::getProductName()); + warn->SetIcon(0); + warn->Execute(); } DeInitVCL(); } |