diff options
Diffstat (limited to 'dbaccess/source/ui/querydesign/querycontroller.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/querycontroller.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx index f5aabbb95d44..0506a3e1cb34 100644 --- a/dbaccess/source/ui/querydesign/querycontroller.cxx +++ b/dbaccess/source/ui/querydesign/querycontroller.cxx @@ -1238,8 +1238,8 @@ void OQueryController::loadViewSettings( const ::comphelper::NamedValueCollectio void OQueryController::execute_QueryPropDlg() { - ScopedVclPtr<QueryPropertiesDialog> aQueryPropDlg(new QueryPropertiesDialog( - getContainer(), m_bDistinct, m_nLimit )); + ScopedVclPtrInstance<QueryPropertiesDialog> aQueryPropDlg( + getContainer(), m_bDistinct, m_nLimit ); if( aQueryPropDlg->Execute() == RET_OK ) { @@ -1398,14 +1398,14 @@ bool OQueryController::askForNewName(const Reference<XNameAccess>& _xElements, b } DynamicTableOrQueryNameCheck aNameChecker( getConnection(), CommandType::QUERY ); - ScopedVclPtr<OSaveAsDlg> aDlg(new OSaveAsDlg( + ScopedVclPtrInstance<OSaveAsDlg> aDlg( getView(), m_nCommandType, getORB(), getConnection(), aDefaultName, aNameChecker, - SAD_DEFAULT )); + SAD_DEFAULT ); bRet = ( aDlg->Execute() == RET_OK ); if ( bRet ) |