diff options
Diffstat (limited to 'dbaccess/source/ui/querydesign/querycontroller.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/querycontroller.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx index 66a203b18314..f56bcab8c05e 100644 --- a/dbaccess/source/ui/querydesign/querycontroller.cxx +++ b/dbaccess/source/ui/querydesign/querycontroller.cxx @@ -1046,7 +1046,7 @@ void OQueryController::impl_initialize() m_bGraphicalDesign = false; getContainer()->initialize(); ODataView* pWindow = getView(); - ScopedVclPtr<OSQLMessageBox>::Create(pWindow,e)->Execute(); + ScopedVclPtrInstance<OSQLMessageBox>(pWindow,e)->Execute(); } throw; } @@ -1398,7 +1398,7 @@ bool OQueryController::doSaveAsDoc(bool _bSaveAs) if ( !editingCommand() && !haveDataSource() ) { OUString aMessage(ModuleRes(STR_DATASOURCE_DELETED)); - ScopedVclPtr<OSQLWarningBox>::Create( getView(), aMessage )->Execute(); + ScopedVclPtrInstance<OSQLWarningBox>(getView(), aMessage)->Execute(); return false; } |