summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/dataaccess/connection.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /dbaccess/source/core/dataaccess/connection.cxx
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'dbaccess/source/core/dataaccess/connection.cxx')
-rw-r--r--dbaccess/source/core/dataaccess/connection.cxx92
1 files changed, 46 insertions, 46 deletions
diff --git a/dbaccess/source/core/dataaccess/connection.cxx b/dbaccess/source/core/dataaccess/connection.cxx
index c03734574d74..d3b928362293 100644
--- a/dbaccess/source/core/dataaccess/connection.cxx
+++ b/dbaccess/source/core/dataaccess/connection.cxx
@@ -76,17 +76,17 @@ namespace dbaccess
{
// XServiceInfo
-OUString OConnection::getImplementationName( ) throw(RuntimeException, std::exception)
+OUString OConnection::getImplementationName( )
{
return OUString("com.sun.star.comp.dbaccess.Connection");
}
-sal_Bool OConnection::supportsService( const OUString& _rServiceName ) throw (RuntimeException, std::exception)
+sal_Bool OConnection::supportsService( const OUString& _rServiceName )
{
return cppu::supportsService(this, _rServiceName);
}
-Sequence< OUString > OConnection::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
+Sequence< OUString > OConnection::getSupportedServiceNames( )
{
Sequence< OUString > aSupported = OConnectionWrapper::getSupportedServiceNames();
@@ -101,20 +101,20 @@ Sequence< OUString > OConnection::getSupportedServiceNames( ) throw (RuntimeExc
}
// XCloseable
-void OConnection::close() throw( SQLException, RuntimeException, std::exception )
+void OConnection::close()
{
// being closed is the same as being disposed
dispose();
}
-sal_Bool OConnection::isClosed() throw( SQLException, RuntimeException, std::exception )
+sal_Bool OConnection::isClosed()
{
MutexGuard aGuard(m_aMutex);
return !m_xMasterConnection.is();
}
// XConnection
-Reference< XStatement > OConnection::createStatement() throw( SQLException, RuntimeException, std::exception )
+Reference< XStatement > OConnection::createStatement()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -129,7 +129,7 @@ Reference< XStatement > OConnection::createStatement() throw( SQLException, Run
return xStatement;
}
-Reference< XPreparedStatement > OConnection::prepareStatement(const OUString& sql) throw( SQLException, RuntimeException, std::exception )
+Reference< XPreparedStatement > OConnection::prepareStatement(const OUString& sql)
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -145,7 +145,7 @@ Reference< XPreparedStatement > OConnection::prepareStatement(const OUString& s
return xStatement;
}
-Reference< XPreparedStatement > OConnection::prepareCall(const OUString& sql) throw( SQLException, RuntimeException, std::exception )
+Reference< XPreparedStatement > OConnection::prepareCall(const OUString& sql)
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -160,98 +160,98 @@ Reference< XPreparedStatement > OConnection::prepareCall(const OUString& sql) t
return xStatement;
}
-OUString OConnection::nativeSQL(const OUString& sql) throw( SQLException, RuntimeException, std::exception )
+OUString OConnection::nativeSQL(const OUString& sql)
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
return m_xMasterConnection->nativeSQL(sql);
}
-void OConnection::setAutoCommit(sal_Bool autoCommit) throw( SQLException, RuntimeException, std::exception )
+void OConnection::setAutoCommit(sal_Bool autoCommit)
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
m_xMasterConnection->setAutoCommit(autoCommit);
}
-sal_Bool OConnection::getAutoCommit() throw( SQLException, RuntimeException, std::exception )
+sal_Bool OConnection::getAutoCommit()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
return m_xMasterConnection->getAutoCommit();
}
-void OConnection::commit() throw( SQLException, RuntimeException, std::exception )
+void OConnection::commit()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
m_xMasterConnection->commit();
}
-void OConnection::rollback() throw( SQLException, RuntimeException, std::exception )
+void OConnection::rollback()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
m_xMasterConnection->rollback();
}
-Reference< XDatabaseMetaData > OConnection::getMetaData() throw( SQLException, RuntimeException, std::exception )
+Reference< XDatabaseMetaData > OConnection::getMetaData()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
return m_xMasterConnection->getMetaData();
}
-void OConnection::setReadOnly(sal_Bool readOnly) throw( SQLException, RuntimeException, std::exception )
+void OConnection::setReadOnly(sal_Bool readOnly)
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
m_xMasterConnection->setReadOnly(readOnly);
}
-sal_Bool OConnection::isReadOnly() throw( SQLException, RuntimeException, std::exception )
+sal_Bool OConnection::isReadOnly()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
return m_xMasterConnection->isReadOnly();
}
-void OConnection::setCatalog(const OUString& catalog) throw( SQLException, RuntimeException, std::exception )
+void OConnection::setCatalog(const OUString& catalog)
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
m_xMasterConnection->setCatalog(catalog);
}
-OUString OConnection::getCatalog() throw( SQLException, RuntimeException, std::exception )
+OUString OConnection::getCatalog()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
return m_xMasterConnection->getCatalog();
}
-void OConnection::setTransactionIsolation(sal_Int32 level) throw( SQLException, RuntimeException, std::exception )
+void OConnection::setTransactionIsolation(sal_Int32 level)
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
m_xMasterConnection->setTransactionIsolation(level);
}
-sal_Int32 OConnection::getTransactionIsolation() throw( SQLException, RuntimeException, std::exception )
+sal_Int32 OConnection::getTransactionIsolation()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
return m_xMasterConnection->getTransactionIsolation();
}
-Reference< XNameAccess > OConnection::getTypeMap() throw( SQLException, RuntimeException, std::exception )
+Reference< XNameAccess > OConnection::getTypeMap()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
return m_xMasterConnection->getTypeMap();
}
-void OConnection::setTypeMap(const Reference< XNameAccess > & typeMap) throw( SQLException, RuntimeException, std::exception )
+void OConnection::setTypeMap(const Reference< XNameAccess > & typeMap)
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -364,14 +364,14 @@ OConnection::~OConnection()
}
// XWarningsSupplier
-Any SAL_CALL OConnection::getWarnings() throw(SQLException, RuntimeException, std::exception)
+Any SAL_CALL OConnection::getWarnings()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
return m_aWarnings.getWarnings();
}
-void SAL_CALL OConnection::clearWarnings( ) throw(SQLException, RuntimeException, std::exception)
+void SAL_CALL OConnection::clearWarnings( )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -397,7 +397,7 @@ namespace
}
// css::lang::XTypeProvider
-Sequence< Type > OConnection::getTypes() throw (RuntimeException, std::exception)
+Sequence< Type > OConnection::getTypes()
{
TypeBag aNormalizedTypes;
@@ -415,13 +415,13 @@ Sequence< Type > OConnection::getTypes() throw (RuntimeException, std::exception
return comphelper::containerToSequence(aNormalizedTypes);
}
-Sequence< sal_Int8 > OConnection::getImplementationId() throw (RuntimeException, std::exception)
+Sequence< sal_Int8 > OConnection::getImplementationId()
{
return css::uno::Sequence<sal_Int8>();
}
// css::uno::XInterface
-Any OConnection::queryInterface( const Type & rType ) throw (RuntimeException, std::exception)
+Any OConnection::queryInterface( const Type & rType )
{
if ( !m_bSupportsViews && rType.equals( cppu::UnoType<XViewsSupplier>::get() ) )
return Any();
@@ -496,20 +496,20 @@ void OConnection::disposing()
}
// XChild
-Reference< XInterface > OConnection::getParent() throw( RuntimeException, std::exception )
+Reference< XInterface > OConnection::getParent()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
return m_xParent;
}
-void OConnection::setParent(const Reference< XInterface > & /*Parent*/) throw( NoSupportException, RuntimeException, std::exception )
+void OConnection::setParent(const Reference< XInterface > & /*Parent*/)
{
throw NoSupportException();
}
// XSQLQueryComposerFactory
-Reference< XSQLQueryComposer > OConnection::createQueryComposer() throw( RuntimeException, std::exception )
+Reference< XSQLQueryComposer > OConnection::createQueryComposer()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -567,7 +567,7 @@ void OConnection::refresh(const Reference< XNameAccess >& _rToBeRefreshed)
}
// XTablesSupplier
-Reference< XNameAccess > OConnection::getTables() throw( RuntimeException, std::exception )
+Reference< XNameAccess > OConnection::getTables()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -577,7 +577,7 @@ Reference< XNameAccess > OConnection::getTables() throw( RuntimeException, std:
return m_pTables;
}
-Reference< XNameAccess > SAL_CALL OConnection::getViews( ) throw(RuntimeException, std::exception)
+Reference< XNameAccess > SAL_CALL OConnection::getViews( )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -588,7 +588,7 @@ Reference< XNameAccess > SAL_CALL OConnection::getViews( ) throw(RuntimeExcepti
}
// XQueriesSupplier
-Reference< XNameAccess > OConnection::getQueries() throw( RuntimeException, std::exception )
+Reference< XNameAccess > OConnection::getQueries()
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -597,7 +597,7 @@ Reference< XNameAccess > OConnection::getQueries() throw( RuntimeException, std
}
// css::sdb::XCommandPreparation
-Reference< XPreparedStatement > SAL_CALL OConnection::prepareCommand( const OUString& command, sal_Int32 commandType ) throw(css::sdbc::SQLException, RuntimeException, std::exception)
+Reference< XPreparedStatement > SAL_CALL OConnection::prepareCommand( const OUString& command, sal_Int32 commandType )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -628,7 +628,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareCommand( const OUS
return prepareStatement(aStatement);
}
-Reference< XInterface > SAL_CALL OConnection::createInstance( const OUString& _sServiceSpecifier ) throw (Exception, RuntimeException, std::exception)
+Reference< XInterface > SAL_CALL OConnection::createInstance( const OUString& _sServiceSpecifier )
{
Reference< XServiceInfo > xRet;
if ( SERVICE_NAME_SINGLESELECTQUERYCOMPOSER == _sServiceSpecifier || _sServiceSpecifier == "com.sun.star.sdb.SingleSelectQueryAnalyzer" )
@@ -658,12 +658,12 @@ Reference< XInterface > SAL_CALL OConnection::createInstance( const OUString& _s
return Reference<XInterface>(xRet, UNO_QUERY);
}
-Reference< XInterface > SAL_CALL OConnection::createInstanceWithArguments( const OUString& _sServiceSpecifier, const Sequence< Any >& /*Arguments*/ ) throw (Exception, RuntimeException, std::exception)
+Reference< XInterface > SAL_CALL OConnection::createInstanceWithArguments( const OUString& _sServiceSpecifier, const Sequence< Any >& /*Arguments*/ )
{
return createInstance(_sServiceSpecifier);
}
-Sequence< OUString > SAL_CALL OConnection::getAvailableServiceNames( ) throw (RuntimeException, std::exception)
+Sequence< OUString > SAL_CALL OConnection::getAvailableServiceNames( )
{
Sequence< OUString > aRet { SERVICE_NAME_SINGLESELECTQUERYCOMPOSER };
return aRet;
@@ -688,7 +688,7 @@ Reference< XTablesSupplier > const & OConnection::getMasterTables()
}
// XUsersSupplier
-Reference< XNameAccess > SAL_CALL OConnection::getUsers( ) throw(RuntimeException, std::exception)
+Reference< XNameAccess > SAL_CALL OConnection::getUsers( )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -698,7 +698,7 @@ Reference< XNameAccess > SAL_CALL OConnection::getUsers( ) throw(RuntimeExcepti
}
// XGroupsSupplier
-Reference< XNameAccess > SAL_CALL OConnection::getGroups( ) throw(RuntimeException, std::exception)
+Reference< XNameAccess > SAL_CALL OConnection::getGroups( )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -711,7 +711,7 @@ void OConnection::impl_loadConnectionTools_throw()
m_xConnectionTools = css::sdb::tools::ConnectionTools::createWithConnection( m_aContext, this );
}
-Reference< XTableName > SAL_CALL OConnection::createTableName( ) throw (RuntimeException, std::exception)
+Reference< XTableName > SAL_CALL OConnection::createTableName( )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -720,7 +720,7 @@ Reference< XTableName > SAL_CALL OConnection::createTableName( ) throw (Runtime
return m_xConnectionTools->createTableName();
}
-Reference< XObjectNames > SAL_CALL OConnection::getObjectNames( ) throw (RuntimeException, std::exception)
+Reference< XObjectNames > SAL_CALL OConnection::getObjectNames( )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -729,7 +729,7 @@ Reference< XObjectNames > SAL_CALL OConnection::getObjectNames( ) throw (Runtim
return m_xConnectionTools->getObjectNames();
}
-Reference< XDataSourceMetaData > SAL_CALL OConnection::getDataSourceMetaData( ) throw (RuntimeException, std::exception)
+Reference< XDataSourceMetaData > SAL_CALL OConnection::getDataSourceMetaData( )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -738,7 +738,7 @@ Reference< XDataSourceMetaData > SAL_CALL OConnection::getDataSourceMetaData( )
return m_xConnectionTools->getDataSourceMetaData();
}
-Reference< css::container::XNameAccess > SAL_CALL OConnection::getFieldsByCommandDescriptor( ::sal_Int32 commandType, const OUString& command, css::uno::Reference< css::lang::XComponent >& keepFieldsAlive ) throw (css::sdbc::SQLException, RuntimeException, std::exception)
+Reference< css::container::XNameAccess > SAL_CALL OConnection::getFieldsByCommandDescriptor( ::sal_Int32 commandType, const OUString& command, css::uno::Reference< css::lang::XComponent >& keepFieldsAlive )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -747,7 +747,7 @@ Reference< css::container::XNameAccess > SAL_CALL OConnection::getFieldsByComman
return m_xConnectionTools->getFieldsByCommandDescriptor(commandType,command,keepFieldsAlive);
}
-Reference< XSingleSelectQueryComposer > SAL_CALL OConnection::getComposer( ::sal_Int32 commandType, const OUString& command ) throw (css::uno::RuntimeException, std::exception)
+Reference< XSingleSelectQueryComposer > SAL_CALL OConnection::getComposer( ::sal_Int32 commandType, const OUString& command )
{
MutexGuard aGuard(m_aMutex);
checkDisposed();
@@ -790,7 +790,7 @@ void OConnection::impl_checkTableQueryNames_nothrow()
}
}
-Reference< XGraphic > SAL_CALL OConnection::getTableIcon( const OUString& TableName, ::sal_Int32 ColorMode ) throw (RuntimeException, std::exception)
+Reference< XGraphic > SAL_CALL OConnection::getTableIcon( const OUString& TableName, ::sal_Int32 ColorMode )
{
Reference< XGraphic > xReturn;
@@ -806,7 +806,7 @@ Reference< XGraphic > SAL_CALL OConnection::getTableIcon( const OUString& TableN
return xReturn;
}
-Reference< XInterface > SAL_CALL OConnection::getTableEditor( const Reference< XDatabaseDocumentUI >& DocumentUI, const OUString& TableName ) throw (IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception)
+Reference< XInterface > SAL_CALL OConnection::getTableEditor( const Reference< XDatabaseDocumentUI >& DocumentUI, const OUString& TableName )
{
Reference< XInterface > xReturn;