summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/inc
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/inc
parentMoved About dialog to DialogFragment (diff)
downloadcore-e57ca02849c3d87142ff5ff9099a212e72b8139c.tar.gz
core-e57ca02849c3d87142ff5ff9099a212e72b8139c.zip
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/inc')
-rw-r--r--dbaccess/source/inc/OAuthenticationContinuation.hxx24
-rw-r--r--dbaccess/source/inc/apitools.hxx37
2 files changed, 30 insertions, 31 deletions
diff --git a/dbaccess/source/inc/OAuthenticationContinuation.hxx b/dbaccess/source/inc/OAuthenticationContinuation.hxx
index cdb7b4055a31..1f6a9f236470 100644
--- a/dbaccess/source/inc/OAuthenticationContinuation.hxx
+++ b/dbaccess/source/inc/OAuthenticationContinuation.hxx
@@ -44,18 +44,18 @@ class OOO_DLLPUBLIC_DBA OAuthenticationContinuation :
public:
OAuthenticationContinuation();
- sal_Bool SAL_CALL canSetRealm( ) throw(css::uno::RuntimeException, std::exception) override;
- void SAL_CALL setRealm( const OUString& Realm ) throw(css::uno::RuntimeException, std::exception) override;
- sal_Bool SAL_CALL canSetUserName( ) throw(css::uno::RuntimeException, std::exception) override;
- void SAL_CALL setUserName( const OUString& UserName ) throw(css::uno::RuntimeException, std::exception) override;
- sal_Bool SAL_CALL canSetPassword( ) throw(css::uno::RuntimeException, std::exception) override;
- void SAL_CALL setPassword( const OUString& Password ) throw(css::uno::RuntimeException, std::exception) override;
- css::uno::Sequence< css::ucb::RememberAuthentication > SAL_CALL getRememberPasswordModes( css::ucb::RememberAuthentication& Default ) throw(css::uno::RuntimeException, std::exception) override;
- void SAL_CALL setRememberPassword( css::ucb::RememberAuthentication Remember ) throw(css::uno::RuntimeException, std::exception) override;
- sal_Bool SAL_CALL canSetAccount( ) throw(css::uno::RuntimeException, std::exception) override;
- void SAL_CALL setAccount( const OUString& Account ) throw(css::uno::RuntimeException, std::exception) override;
- css::uno::Sequence< css::ucb::RememberAuthentication > SAL_CALL getRememberAccountModes( css::ucb::RememberAuthentication& Default ) throw(css::uno::RuntimeException, std::exception) override;
- void SAL_CALL setRememberAccount( css::ucb::RememberAuthentication Remember ) throw(css::uno::RuntimeException, std::exception) override;
+ sal_Bool SAL_CALL canSetRealm( ) override;
+ void SAL_CALL setRealm( const OUString& Realm ) override;
+ sal_Bool SAL_CALL canSetUserName( ) override;
+ void SAL_CALL setUserName( const OUString& UserName ) override;
+ sal_Bool SAL_CALL canSetPassword( ) override;
+ void SAL_CALL setPassword( const OUString& Password ) override;
+ css::uno::Sequence< css::ucb::RememberAuthentication > SAL_CALL getRememberPasswordModes( css::ucb::RememberAuthentication& Default ) override;
+ void SAL_CALL setRememberPassword( css::ucb::RememberAuthentication Remember ) override;
+ sal_Bool SAL_CALL canSetAccount( ) override;
+ void SAL_CALL setAccount( const OUString& Account ) override;
+ css::uno::Sequence< css::ucb::RememberAuthentication > SAL_CALL getRememberAccountModes( css::ucb::RememberAuthentication& Default ) override;
+ void SAL_CALL setRememberAccount( css::ucb::RememberAuthentication Remember ) override;
void setCanChangeUserName( bool bVal ) { m_bCanSetUserName = bVal; }
const OUString& getUser() const { return m_sUser; }
diff --git a/dbaccess/source/inc/apitools.hxx b/dbaccess/source/inc/apitools.hxx
index 9561bb6d2d5c..e8f30cdd156f 100644
--- a/dbaccess/source/inc/apitools.hxx
+++ b/dbaccess/source/inc/apitools.hxx
@@ -45,11 +45,10 @@ public:
const css::uno::Reference< css::uno::XInterface >& _xParent);
// css::lang::XTypeProvider
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
// css::uno::XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
virtual void SAL_CALL release() throw() override;
inline operator css::uno::Reference< css::uno::XInterface > () const
@@ -61,23 +60,23 @@ public:
// (internal - not to be used outside - usually)
#define IMPLEMENT_SERVICE_INFO_IMPLNAME(classname, implasciiname) \
- OUString SAL_CALL classname::getImplementationName( ) throw (css::uno::RuntimeException, std::exception) \
+ OUString SAL_CALL classname::getImplementationName( ) \
{ \
return OUString(implasciiname); \
} \
#define IMPLEMENT_SERVICE_INFO_IMPLNAME_STATIC(classname, implasciiname) \
- OUString SAL_CALL classname::getImplementationName( ) throw (css::uno::RuntimeException, std::exception) \
+ OUString SAL_CALL classname::getImplementationName( ) \
{ \
return getImplementationName_Static(); \
} \
- OUString SAL_CALL classname::getImplementationName_Static( ) throw (css::uno::RuntimeException) \
+ OUString SAL_CALL classname::getImplementationName_Static( ) \
{ \
return OUString(implasciiname); \
} \
#define IMPLEMENT_SERVICE_INFO_SUPPORTS(classname) \
- sal_Bool SAL_CALL classname::supportsService( const OUString& _rServiceName ) throw(css::uno::RuntimeException, std::exception) \
+ sal_Bool SAL_CALL classname::supportsService( const OUString& _rServiceName ) \
{ \
css::uno::Sequence< OUString > aSupported(getSupportedServiceNames()); \
const OUString* pSupported = aSupported.getConstArray(); \
@@ -89,22 +88,22 @@ public:
} \
#define IMPLEMENT_SERVICE_INFO_GETSUPPORTED1_STATIC(classname, serviceasciiname) \
- css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) \
+ css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) \
{ \
return getSupportedServiceNames_Static(); \
} \
- css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames_Static( ) throw(css::uno::RuntimeException) \
+ css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames_Static( ) \
{ \
css::uno::Sequence< OUString > aSupported { serviceasciiname }; \
return aSupported; \
} \
#define IMPLEMENT_SERVICE_INFO_GETSUPPORTED2_STATIC(classname, serviceasciiname1, serviceasciiname2) \
- css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) \
+ css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) \
{ \
return getSupportedServiceNames_Static(); \
} \
- css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames_Static( ) throw(css::uno::RuntimeException) \
+ css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames_Static( ) \
{ \
css::uno::Sequence< OUString > aSupported(2); \
aSupported[0] = serviceasciiname1; \
@@ -115,7 +114,7 @@ public:
#define IMPLEMENT_SERVICE_INFO1(classname, implasciiname, serviceasciiname) \
IMPLEMENT_SERVICE_INFO_IMPLNAME(classname, implasciiname) \
IMPLEMENT_SERVICE_INFO_SUPPORTS(classname) \
- css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) \
+ css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) \
{ \
return css::uno::Sequence< OUString > { serviceasciiname }; \
} \
@@ -124,7 +123,7 @@ public:
#define IMPLEMENT_SERVICE_INFO2(classname, implasciiname, serviceasciiname1, serviceasciiname2) \
IMPLEMENT_SERVICE_INFO_IMPLNAME(classname, implasciiname) \
IMPLEMENT_SERVICE_INFO_SUPPORTS(classname) \
- css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) \
+ css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) \
{ \
return css::uno::Sequence< OUString > { serviceasciiname1, serviceasciiname2 }; \
}
@@ -144,7 +143,7 @@ public:
#define IMPLEMENT_SERVICE_INFO3(classname, implasciiname, serviceasciiname1, serviceasciiname2, serviceasciiname3) \
IMPLEMENT_SERVICE_INFO_IMPLNAME(classname, implasciiname) \
IMPLEMENT_SERVICE_INFO_SUPPORTS(classname) \
- css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) \
+ css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) \
{ \
return css::uno::Sequence< OUString > { serviceasciiname1, serviceasciiname2, serviceasciiname3 }; \
} \
@@ -167,13 +166,13 @@ css::uno::Sequence< sal_Int8 > classname::getUnoTunnelImplementationId() \
} \
return pId->getImplementationId(); \
} \
-css::uno::Sequence< sal_Int8 > classname::getImplementationId() throw (css::uno::RuntimeException, std::exception) \
+css::uno::Sequence< sal_Int8 > classname::getImplementationId() \
{ \
return css::uno::Sequence<sal_Int8>(); \
}
#define IMPLEMENT_GETTYPES2( classname, baseclass1, baseclass2 ) \
- css::uno::Sequence< css::uno::Type > classname::getTypes() throw (css::uno::RuntimeException, std::exception) \
+ css::uno::Sequence< css::uno::Type > classname::getTypes() \
{ \
return ::comphelper::concatSequences( \
baseclass1::getTypes( ), \
@@ -182,7 +181,7 @@ css::uno::Sequence< sal_Int8 > classname::getImplementationId() throw (css::uno:
}
#define IMPLEMENT_GETTYPES3( classname, baseclass1, baseclass2, baseclass3 ) \
- css::uno::Sequence< css::uno::Type > classname::getTypes() throw (css::uno::RuntimeException, std::exception) \
+ css::uno::Sequence< css::uno::Type > classname::getTypes() \
{ \
return ::comphelper::concatSequences( \
baseclass1::getTypes( ), \
@@ -193,12 +192,12 @@ css::uno::Sequence< sal_Int8 > classname::getImplementationId() throw (css::uno:
// helper for declaring/implementing classes based on the OPropertyContainer and an OPropertyArrayUsageHelper
#define DECLARE_PROPERTYCONTAINER_DEFAULTS( ) \
- virtual css::uno::Reference< css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(css::uno::RuntimeException, std::exception) override; \
+ virtual css::uno::Reference< css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() override; \
virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override; \
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override
#define IMPLEMENT_PROPERTYCONTAINER_DEFAULTS2( classname , baseclass1) \
- css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL classname::getPropertySetInfo() throw(css::uno::RuntimeException, std::exception) \
+ css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL classname::getPropertySetInfo() \
{ \
Reference< XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) ); \
return xInfo; \