summaryrefslogtreecommitdiffstats
path: root/shell
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 /shell
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 'shell')
-rw-r--r--shell/source/backends/desktopbe/desktopbackend.cxx49
-rw-r--r--shell/source/backends/kde4be/kde4backend.cxx49
-rw-r--r--shell/source/backends/localebe/localebackend.cxx10
-rw-r--r--shell/source/backends/localebe/localebackend.hxx43
-rw-r--r--shell/source/backends/macbe/macbackend.hxx43
-rw-r--r--shell/source/backends/macbe/macbackend.mm10
-rw-r--r--shell/source/backends/wininetbe/wininetbackend.cxx10
-rw-r--r--shell/source/backends/wininetbe/wininetbackend.hxx43
-rw-r--r--shell/source/cmdmail/cmdmailmsg.cxx19
-rw-r--r--shell/source/cmdmail/cmdmailmsg.hxx57
-rw-r--r--shell/source/cmdmail/cmdmailsuppl.cxx6
-rw-r--r--shell/source/cmdmail/cmdmailsuppl.hxx18
-rw-r--r--shell/source/sessioninstall/SyncDbusSessionHelper.cxx11
-rw-r--r--shell/source/sessioninstall/SyncDbusSessionHelper.hxx24
-rw-r--r--shell/source/unix/exec/shellexec.cxx4
-rw-r--r--shell/source/unix/exec/shellexec.hxx12
-rw-r--r--shell/source/win32/SysShExec.cxx4
-rw-r--r--shell/source/win32/SysShExec.hxx12
-rw-r--r--shell/source/win32/simplemail/smplmailclient.cxx2
-rw-r--r--shell/source/win32/simplemail/smplmailclient.hxx6
-rw-r--r--shell/source/win32/simplemail/smplmailmsg.cxx14
-rw-r--r--shell/source/win32/simplemail/smplmailmsg.hxx42
-rw-r--r--shell/source/win32/simplemail/smplmailsuppl.cxx4
-rw-r--r--shell/source/win32/simplemail/smplmailsuppl.hxx12
24 files changed, 116 insertions, 388 deletions
diff --git a/shell/source/backends/desktopbe/desktopbackend.cxx b/shell/source/backends/desktopbe/desktopbackend.cxx
index dfb9b6d32993..e162a03c3ded 100644
--- a/shell/source/backends/desktopbe/desktopbackend.cxx
+++ b/shell/source/backends/desktopbe/desktopbackend.cxx
@@ -77,74 +77,48 @@ public:
private:
virtual ~Default() override {}
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getImplementationName() override
{ return getDefaultImplementationName(); }
- virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override
{ return ServiceName == getSupportedServiceNames()[0]; }
virtual css::uno::Sequence< OUString > SAL_CALL
- getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override
+ getSupportedServiceNames() override
{ return getDefaultSupportedServiceNames(); }
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
- getPropertySetInfo() throw (css::uno::RuntimeException, std::exception) override
+ getPropertySetInfo() override
{ return css::uno::Reference< css::beans::XPropertySetInfo >(); }
virtual void SAL_CALL setPropertyValue(
- OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException,
- css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ OUString const &, css::uno::Any const &) override;
virtual css::uno::Any SAL_CALL getPropertyValue(
- OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ OUString const & PropertyName) override;
virtual void SAL_CALL addPropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL removePropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL addVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
virtual void SAL_CALL removeVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
};
void Default::setPropertyValue(OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
throw css::lang::IllegalArgumentException(
OUString("setPropertyValue not supported"),
@@ -263,9 +237,6 @@ css::uno::Any xdgDirectoryIfExists(char const * type) {
} // namespace
css::uno::Any Default::getPropertyValue(OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
if (PropertyName == "TemplatePathVariable")
{
diff --git a/shell/source/backends/kde4be/kde4backend.cxx b/shell/source/backends/kde4be/kde4backend.cxx
index bd0b2d49edd4..70d14cc371fb 100644
--- a/shell/source/backends/kde4be/kde4backend.cxx
+++ b/shell/source/backends/kde4be/kde4backend.cxx
@@ -75,66 +75,44 @@ public:
private:
virtual ~Service() override {}
- virtual OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) override
+ virtual OUString SAL_CALL getImplementationName() override
{ return getServiceImplementationName(); }
- virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception) override
+ virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override
{ return ServiceName == getSupportedServiceNames()[0]; }
virtual css::uno::Sequence< OUString > SAL_CALL
- getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override
+ getSupportedServiceNames() override
{ return getServiceSupportedServiceNames(); }
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
- getPropertySetInfo() throw (css::uno::RuntimeException, std::exception) override
+ getPropertySetInfo() override
{ return css::uno::Reference< css::beans::XPropertySetInfo >(); }
virtual void SAL_CALL setPropertyValue(
- OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException,
- css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ OUString const &, css::uno::Any const &) override;
virtual css::uno::Any SAL_CALL getPropertyValue(
- OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ OUString const & PropertyName) override;
virtual void SAL_CALL addPropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL removePropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL addVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
virtual void SAL_CALL removeVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
bool enabled_;
@@ -151,10 +129,6 @@ Service::Service(): enabled_(false) {
}
void Service::setPropertyValue(OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
throw css::lang::IllegalArgumentException(
OUString("setPropertyValue not supported"),
@@ -162,9 +136,6 @@ void Service::setPropertyValue(OUString const &, css::uno::Any const &)
}
css::uno::Any Service::getPropertyValue(OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
if (PropertyName == "EnableATToolSupport" || PropertyName == "ExternalMailer" || PropertyName == "SourceViewFontHeight"
|| PropertyName == "SourceViewFontName" || PropertyName == "WorkPathVariable" || PropertyName == "ooInetFTPProxyName"
diff --git a/shell/source/backends/localebe/localebackend.cxx b/shell/source/backends/localebe/localebackend.cxx
index 852d1dc9be7d..1eb92c9773e8 100644
--- a/shell/source/backends/localebe/localebackend.cxx
+++ b/shell/source/backends/localebe/localebackend.cxx
@@ -257,10 +257,6 @@ OUString LocaleBackend::getSystemLocale()
void LocaleBackend::setPropertyValue(
OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
throw css::lang::IllegalArgumentException(
OUString(
@@ -270,9 +266,6 @@ void LocaleBackend::setPropertyValue(
css::uno::Any LocaleBackend::getPropertyValue(
OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
if ( PropertyName == "Locale" ) {
return css::uno::makeAny(
@@ -300,7 +293,6 @@ OUString SAL_CALL LocaleBackend::getBackendName() {
}
OUString SAL_CALL LocaleBackend::getImplementationName()
- throw (uno::RuntimeException, std::exception)
{
return getBackendName() ;
}
@@ -312,13 +304,11 @@ uno::Sequence<OUString> SAL_CALL LocaleBackend::getBackendServiceNames()
}
sal_Bool SAL_CALL LocaleBackend::supportsService(const OUString& aServiceName)
- throw (uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, aServiceName);
}
uno::Sequence<OUString> SAL_CALL LocaleBackend::getSupportedServiceNames()
- throw (uno::RuntimeException, std::exception)
{
return getBackendServiceNames() ;
}
diff --git a/shell/source/backends/localebe/localebackend.hxx b/shell/source/backends/localebe/localebackend.hxx
index 5927f4cbd585..2a91d5f3fb44 100644
--- a/shell/source/backends/localebe/localebackend.hxx
+++ b/shell/source/backends/localebe/localebackend.hxx
@@ -39,16 +39,13 @@ class LocaleBackend : public ::cppu::WeakImplHelper <
// XServiceInfo
virtual OUString SAL_CALL
- getImplementationName( )
- throw (uno::RuntimeException, std::exception) override ;
+ getImplementationName( ) override ;
virtual sal_Bool SAL_CALL
- supportsService( const OUString& aServiceName )
- throw (uno::RuntimeException, std::exception) override ;
+ supportsService( const OUString& aServiceName ) override ;
virtual uno::Sequence<OUString> SAL_CALL
- getSupportedServiceNames( )
- throw (uno::RuntimeException, std::exception) override ;
+ getSupportedServiceNames( ) override ;
/**
Provides the implementation name.
@@ -65,53 +62,33 @@ class LocaleBackend : public ::cppu::WeakImplHelper <
// XPropertySet
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
- getPropertySetInfo() throw (css::uno::RuntimeException, std::exception) override
+ getPropertySetInfo() override
{ return css::uno::Reference< css::beans::XPropertySetInfo >(); }
virtual void SAL_CALL setPropertyValue(
- OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException,
- css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ OUString const &, css::uno::Any const &) override;
virtual css::uno::Any SAL_CALL getPropertyValue(
- OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ OUString const & PropertyName) override;
virtual void SAL_CALL addPropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL removePropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL addVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
virtual void SAL_CALL removeVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
protected:
diff --git a/shell/source/backends/macbe/macbackend.hxx b/shell/source/backends/macbe/macbackend.hxx
index 19b8e49059e7..0af641f13fef 100644
--- a/shell/source/backends/macbe/macbackend.hxx
+++ b/shell/source/backends/macbe/macbackend.hxx
@@ -39,14 +39,11 @@ public:
static MacOSXBackend* createInstance();
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName()
- throw (uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
- virtual sal_Bool SAL_CALL supportsService(const OUString& aServiceName)
- throw (uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL supportsService(const OUString& aServiceName) override;
- virtual uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
- throw (uno::RuntimeException, std::exception) override;
+ virtual uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
/**
Provides the implementation name.
@@ -64,53 +61,33 @@ public:
// XPropertySet
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
- getPropertySetInfo() throw (css::uno::RuntimeException, std::exception) override
+ getPropertySetInfo() override
{ return css::uno::Reference< css::beans::XPropertySetInfo >(); }
virtual void SAL_CALL setPropertyValue(
- OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException,
- css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ OUString const &, css::uno::Any const &) override;
virtual css::uno::Any SAL_CALL getPropertyValue(
- OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ OUString const & PropertyName) override;
virtual void SAL_CALL addPropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL removePropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL addVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
virtual void SAL_CALL removeVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
protected:
diff --git a/shell/source/backends/macbe/macbackend.mm b/shell/source/backends/macbe/macbackend.mm
index 3374c8e6449d..4a4df4201437 100644
--- a/shell/source/backends/macbe/macbackend.mm
+++ b/shell/source/backends/macbe/macbackend.mm
@@ -193,10 +193,6 @@ rtl::OUString GetOUString( NSString* pStr )
void MacOSXBackend::setPropertyValue(
rtl::OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
throw css::lang::IllegalArgumentException(
rtl::OUString(
@@ -206,9 +202,6 @@ void MacOSXBackend::setPropertyValue(
css::uno::Any MacOSXBackend::getPropertyValue(
rtl::OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
- css::uno::RuntimeException, std::exception)
{
if ( PropertyName == "WorkPathVariable" )
{
@@ -430,7 +423,6 @@ rtl::OUString SAL_CALL MacOSXBackend::getBackendName(void)
}
rtl::OUString SAL_CALL MacOSXBackend::getImplementationName(void)
- throw (uno::RuntimeException, std::exception)
{
return getBackendName();
}
@@ -443,13 +435,11 @@ uno::Sequence<rtl::OUString> SAL_CALL MacOSXBackend::getBackendServiceNames(void
}
sal_Bool SAL_CALL MacOSXBackend::supportsService(const rtl::OUString& aServiceName)
- throw (uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, aServiceName);
}
uno::Sequence<rtl::OUString> SAL_CALL MacOSXBackend::getSupportedServiceNames(void)
- throw (uno::RuntimeException, std::exception)
{
return getBackendServiceNames();
}
diff --git a/shell/source/backends/wininetbe/wininetbackend.cxx b/shell/source/backends/wininetbe/wininetbackend.cxx
index 42f091fe759a..b1c2b1c344be 100644
--- a/shell/source/backends/wininetbe/wininetbackend.cxx
+++ b/shell/source/backends/wininetbe/wininetbackend.cxx
@@ -299,10 +299,6 @@ WinInetBackend* WinInetBackend::createInstance()
void WinInetBackend::setPropertyValue(
OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException, css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException, css::lang::WrappedTargetException,
- css::uno::RuntimeException)
{
throw css::lang::IllegalArgumentException(
OUString(
@@ -312,9 +308,6 @@ void WinInetBackend::setPropertyValue(
css::uno::Any WinInetBackend::getPropertyValue(
OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
- css::uno::RuntimeException)
{
if ( PropertyName == "ooInetFTPProxyName" )
{
@@ -351,7 +344,6 @@ OUString SAL_CALL WinInetBackend::getBackendName() {
}
OUString SAL_CALL WinInetBackend::getImplementationName()
- throw (uno::RuntimeException)
{
return getBackendName() ;
}
@@ -364,13 +356,11 @@ uno::Sequence<OUString> SAL_CALL WinInetBackend::getBackendServiceNames()
}
sal_Bool SAL_CALL WinInetBackend::supportsService(const OUString& aServiceName)
- throw (uno::RuntimeException)
{
return cppu::supportsService(this, aServiceName);
}
uno::Sequence<OUString> SAL_CALL WinInetBackend::getSupportedServiceNames()
- throw (uno::RuntimeException)
{
return getBackendServiceNames() ;
}
diff --git a/shell/source/backends/wininetbe/wininetbackend.hxx b/shell/source/backends/wininetbe/wininetbackend.hxx
index 222ed09a1070..b1df7d7a76a3 100644
--- a/shell/source/backends/wininetbe/wininetbackend.hxx
+++ b/shell/source/backends/wininetbe/wininetbackend.hxx
@@ -39,16 +39,13 @@ class WinInetBackend : public ::cppu::WeakImplHelper <
// XServiceInfo
virtual OUString SAL_CALL
- getImplementationName( )
- throw (uno::RuntimeException) override;
+ getImplementationName( ) override;
virtual sal_Bool SAL_CALL
- supportsService( const OUString& aServiceName )
- throw (uno::RuntimeException) override;
+ supportsService( const OUString& aServiceName ) override;
virtual uno::Sequence<OUString> SAL_CALL
- getSupportedServiceNames( )
- throw (uno::RuntimeException) override;
+ getSupportedServiceNames( ) override;
/**
Provides the implementation name.
@@ -65,53 +62,33 @@ class WinInetBackend : public ::cppu::WeakImplHelper <
// XPropertySet
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
- getPropertySetInfo() throw (css::uno::RuntimeException) override
+ getPropertySetInfo() override
{ return css::uno::Reference< css::beans::XPropertySetInfo >(); }
virtual void SAL_CALL setPropertyValue(
- OUString const &, css::uno::Any const &)
- throw (
- css::beans::UnknownPropertyException,
- css::beans::PropertyVetoException,
- css::lang::IllegalArgumentException,
- css::lang::WrappedTargetException, css::uno::RuntimeException) override;
+ OUString const &, css::uno::Any const &) override;
virtual css::uno::Any SAL_CALL getPropertyValue(
- OUString const & PropertyName)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException) override;
+ OUString const & PropertyName) override;
virtual void SAL_CALL addPropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL removePropertyChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XPropertyChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException) override
+ css::uno::Reference< css::beans::XPropertyChangeListener > const &) override
{}
virtual void SAL_CALL addVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
virtual void SAL_CALL removeVetoableChangeListener(
OUString const &,
- css::uno::Reference< css::beans::XVetoableChangeListener > const &)
- throw (
- css::beans::UnknownPropertyException,
- css::lang::WrappedTargetException, css::uno::RuntimeException) override
+ css::uno::Reference< css::beans::XVetoableChangeListener > const &) override
{}
protected:
diff --git a/shell/source/cmdmail/cmdmailmsg.cxx b/shell/source/cmdmail/cmdmailmsg.cxx
index 9d6afa23d194..e1e8f1829635 100644
--- a/shell/source/cmdmail/cmdmailmsg.cxx
+++ b/shell/source/cmdmail/cmdmailmsg.cxx
@@ -30,105 +30,90 @@ using namespace com::sun::star::uno;
void SAL_CALL CmdMailMsg::setBody( const OUString& aBody )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
m_aBody = aBody;
}
OUString SAL_CALL CmdMailMsg::getBody( )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
return m_aBody;
}
void SAL_CALL CmdMailMsg::setRecipient( const OUString& aRecipient )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
m_aRecipient = aRecipient;
}
OUString SAL_CALL CmdMailMsg::getRecipient( )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
return m_aRecipient;
}
void SAL_CALL CmdMailMsg::setCcRecipient( const Sequence< OUString >& aCcRecipient )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
m_CcRecipients = aCcRecipient;
}
Sequence< OUString > SAL_CALL CmdMailMsg::getCcRecipient( )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
return m_CcRecipients;
}
void SAL_CALL CmdMailMsg::setBccRecipient( const Sequence< OUString >& aBccRecipient )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
m_BccRecipients = aBccRecipient;
}
Sequence< OUString > SAL_CALL CmdMailMsg::getBccRecipient( )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
return m_BccRecipients;
}
void SAL_CALL CmdMailMsg::setOriginator( const OUString& aOriginator )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
m_aOriginator = aOriginator;
}
OUString SAL_CALL CmdMailMsg::getOriginator( )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
return m_aOriginator;
}
void SAL_CALL CmdMailMsg::setSubject( const OUString& aSubject )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
m_aSubject = aSubject;
}
OUString SAL_CALL CmdMailMsg::getSubject( )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
return m_aSubject;
}
void SAL_CALL CmdMailMsg::setAttachement( const Sequence< OUString >& aAttachment )
- throw (IllegalArgumentException, RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
m_Attachments = aAttachment;
}
Sequence< OUString > SAL_CALL CmdMailMsg::getAttachement( )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
return m_Attachments;
}
Any SAL_CALL CmdMailMsg::getByName( const OUString& aName )
- throw (NoSuchElementException, WrappedTargetException, RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
@@ -158,7 +143,6 @@ Any SAL_CALL CmdMailMsg::getByName( const OUString& aName )
}
Sequence< OUString > SAL_CALL CmdMailMsg::getElementNames( )
- throw (css::uno::RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
@@ -191,7 +175,6 @@ Sequence< OUString > SAL_CALL CmdMailMsg::getElementNames( )
}
sal_Bool SAL_CALL CmdMailMsg::hasByName( const OUString& aName )
- throw (RuntimeException, std::exception)
{
MutexGuard aGuard( m_aMutex );
@@ -220,14 +203,12 @@ Sequence< OUString > SAL_CALL CmdMailMsg::getElementNames( )
}
Type SAL_CALL CmdMailMsg::getElementType( )
- throw (RuntimeException, std::exception)
{
// returning void for multi type container
return Type();
}
sal_Bool SAL_CALL CmdMailMsg::hasElements( )
- throw (RuntimeException, std::exception)
{
return 0 != getElementNames().getLength();
}
diff --git a/shell/source/cmdmail/cmdmailmsg.hxx b/shell/source/cmdmail/cmdmailmsg.hxx
index 74f28e0aa9b8..1a3a6c493adb 100644
--- a/shell/source/cmdmail/cmdmailmsg.hxx
+++ b/shell/source/cmdmail/cmdmailmsg.hxx
@@ -54,70 +54,51 @@ public:
// XSimpleMailMessage
- virtual void SAL_CALL setBody( const OUString& aBody )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setBody( const OUString& aBody ) override;
- virtual OUString SAL_CALL getBody( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getBody( ) override;
- virtual void SAL_CALL setRecipient( const OUString& aRecipient )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setRecipient( const OUString& aRecipient ) override;
- virtual OUString SAL_CALL getRecipient( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getRecipient( ) override;
- virtual void SAL_CALL setCcRecipient( const css::uno::Sequence< OUString >& aCcRecipient )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setCcRecipient( const css::uno::Sequence< OUString >& aCcRecipient ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getCcRecipient( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getCcRecipient( ) override;
- virtual void SAL_CALL setBccRecipient( const css::uno::Sequence< OUString >& aBccRecipient )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setBccRecipient( const css::uno::Sequence< OUString >& aBccRecipient ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getBccRecipient( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getBccRecipient( ) override;
- virtual void SAL_CALL setOriginator( const OUString& aOriginator )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setOriginator( const OUString& aOriginator ) override;
- virtual OUString SAL_CALL getOriginator( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getOriginator( ) override;
- virtual void SAL_CALL setSubject( const OUString& aSubject )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setSubject( const OUString& aSubject ) override;
- virtual OUString SAL_CALL getSubject( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getSubject( ) override;
- virtual void SAL_CALL setAttachement( const css::uno::Sequence< OUString >& aAttachement )
- throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setAttachement( const css::uno::Sequence< OUString >& aAttachement ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getAttachement( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getAttachement( ) override;
// XNameAccess
- virtual css::uno::Any SAL_CALL getByName( const OUString& aName )
- throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( )
- throw (css::uno::RuntimeException, std::exception) override ;
+ virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) override ;
- virtual sal_Bool SAL_CALL hasByName( const OUString& aName )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) override;
// XElementAccess
- virtual css::uno::Type SAL_CALL getElementType( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Type SAL_CALL getElementType( ) override;
- virtual sal_Bool SAL_CALL hasElements( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL hasElements( ) override;
};
diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx
index 899a47c3c8fe..7f1d394c35c5 100644
--- a/shell/source/cmdmail/cmdmailsuppl.cxx
+++ b/shell/source/cmdmail/cmdmailsuppl.cxx
@@ -73,7 +73,6 @@ CmdMailSuppl::CmdMailSuppl( const Reference< XComponentContext >& xContext ) :
// XSimpleMailClientSupplier
Reference< XSimpleMailClient > SAL_CALL CmdMailSuppl::querySimpleMailClient( )
- throw (RuntimeException, std::exception)
{
return static_cast < XSimpleMailClient * > (this);
}
@@ -81,7 +80,6 @@ Reference< XSimpleMailClient > SAL_CALL CmdMailSuppl::querySimpleMailClient( )
// XSimpleMailClient
Reference< XSimpleMailMessage > SAL_CALL CmdMailSuppl::createSimpleMailMessage( )
- throw (css::uno::RuntimeException, std::exception)
{
return Reference< XSimpleMailMessage >( new CmdMailMsg( ) );
}
@@ -128,7 +126,6 @@ void appendShellWord(OStringBuffer & buffer, OUString const & word, bool strict)
}
void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailMessage >& xSimpleMailMessage, sal_Int32 /*aFlag*/ )
- throw (IllegalArgumentException, Exception, RuntimeException, std::exception)
{
if ( ! xSimpleMailMessage.is() )
{
@@ -288,19 +285,16 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
// XServiceInfo
OUString SAL_CALL CmdMailSuppl::getImplementationName( )
- throw( RuntimeException, std::exception )
{
return OUString("com.sun.star.comp.system.SimpleCommandMail");
}
sal_Bool SAL_CALL CmdMailSuppl::supportsService( const OUString& ServiceName )
- throw( RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
Sequence< OUString > SAL_CALL CmdMailSuppl::getSupportedServiceNames( )
- throw( RuntimeException, std::exception )
{
return Component_getSupportedServiceNames();
}
diff --git a/shell/source/cmdmail/cmdmailsuppl.hxx b/shell/source/cmdmail/cmdmailsuppl.hxx
index 4d075d477428..13b4d319ac51 100644
--- a/shell/source/cmdmail/cmdmailsuppl.hxx
+++ b/shell/source/cmdmail/cmdmailsuppl.hxx
@@ -50,31 +50,25 @@ public:
// XSimpleMailClientSupplier
- virtual css::uno::Reference< css::system::XSimpleMailClient > SAL_CALL querySimpleMailClient( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::system::XSimpleMailClient > SAL_CALL querySimpleMailClient( ) override;
// XSimpleMailClient
- virtual css::uno::Reference< css::system::XSimpleMailMessage > SAL_CALL createSimpleMailMessage( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::system::XSimpleMailMessage > SAL_CALL createSimpleMailMessage( ) override;
- virtual void SAL_CALL sendSimpleMailMessage( const css::uno::Reference< css::system::XSimpleMailMessage >& xSimpleMailMessage, sal_Int32 aFlag )
- throw (css::lang::IllegalArgumentException, css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL sendSimpleMailMessage( const css::uno::Reference< css::system::XSimpleMailMessage >& xSimpleMailMessage, sal_Int32 aFlag ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
};
#endif
diff --git a/shell/source/sessioninstall/SyncDbusSessionHelper.cxx b/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
index a578b488e23d..5fd6f63aae7d 100644
--- a/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
+++ b/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
@@ -94,7 +94,6 @@ namespace shell { namespace sessioninstall
void SyncDbusSessionHelper::InstallPackageFiles(
sal_uInt32 xid, css::uno::Sequence<OUString> const & files,
OUString const & interaction)
- throw (css::uno::RuntimeException, std::exception)
{
request("InstallPackageFiles", xid, files, interaction);
}
@@ -102,7 +101,6 @@ void SyncDbusSessionHelper::InstallPackageFiles(
void SyncDbusSessionHelper::InstallProvideFiles(
sal_uInt32 xid, css::uno::Sequence<OUString> const & files,
OUString const & interaction)
- throw (css::uno::RuntimeException, std::exception)
{
request("InstallProvideFiles", xid, files, interaction);
}
@@ -110,7 +108,6 @@ void SyncDbusSessionHelper::InstallProvideFiles(
void SyncDbusSessionHelper::InstallCatalogs(
sal_uInt32 xid, css::uno::Sequence<OUString> const & files,
OUString const & interaction)
- throw (css::uno::RuntimeException, std::exception)
{
request("InstallCatalogs", xid, files, interaction);
}
@@ -118,7 +115,6 @@ void SyncDbusSessionHelper::InstallCatalogs(
void SyncDbusSessionHelper::InstallPackageNames(
sal_uInt32 xid, css::uno::Sequence<OUString> const & packages,
OUString const & interaction)
- throw (css::uno::RuntimeException, std::exception)
{
request("InstallPackageNames", xid, packages, interaction);
}
@@ -126,7 +122,6 @@ void SyncDbusSessionHelper::InstallPackageNames(
void SyncDbusSessionHelper::InstallMimeTypes(
sal_uInt32 xid, css::uno::Sequence<OUString> const & mimeTypes,
OUString const & interaction)
- throw (css::uno::RuntimeException, std::exception)
{
request("InstallMimeTypes", xid, mimeTypes, interaction);
}
@@ -134,7 +129,6 @@ void SyncDbusSessionHelper::InstallMimeTypes(
void SyncDbusSessionHelper::InstallFontconfigResources(
sal_uInt32 xid, css::uno::Sequence<OUString> const & resources,
OUString const & interaction)
- throw (css::uno::RuntimeException, std::exception)
{
request("InstallFontconfigResources", xid, resources, interaction);
}
@@ -142,7 +136,6 @@ void SyncDbusSessionHelper::InstallFontconfigResources(
void SyncDbusSessionHelper::InstallGStreamerResources(
sal_uInt32 xid, css::uno::Sequence<OUString> const & resources,
OUString const & interaction)
- throw (css::uno::RuntimeException, std::exception)
{
request("InstallGStreamerResources", xid, resources, interaction);
}
@@ -150,7 +143,6 @@ void SyncDbusSessionHelper::InstallGStreamerResources(
void SyncDbusSessionHelper::RemovePackageByFiles(
sal_uInt32 xid, css::uno::Sequence<OUString> const & files,
OUString const & interaction)
- throw (css::uno::RuntimeException, std::exception)
{
request("RemovePackageByFiles", xid, files, interaction);
}
@@ -158,12 +150,11 @@ void SyncDbusSessionHelper::RemovePackageByFiles(
void SyncDbusSessionHelper::InstallPrinterDrivers(
sal_uInt32 xid, css::uno::Sequence<OUString> const & files,
OUString const & interaction)
- throw (css::uno::RuntimeException, std::exception)
{
request("InstallPrinteDrivers", xid, files, interaction);
}
- void SAL_CALL SyncDbusSessionHelper::IsInstalled( const OUString& sPackagename, const OUString& sInteraction, sal_Bool& o_isInstalled ) throw (RuntimeException, std::exception)
+ void SAL_CALL SyncDbusSessionHelper::IsInstalled( const OUString& sPackagename, const OUString& sInteraction, sal_Bool& o_isInstalled )
{
const OString sPackagenameAscii = OUStringToOString(sPackagename, RTL_TEXTENCODING_ASCII_US);
const OString sInteractionAscii = OUStringToOString(sInteraction, RTL_TEXTENCODING_ASCII_US);
diff --git a/shell/source/sessioninstall/SyncDbusSessionHelper.hxx b/shell/source/sessioninstall/SyncDbusSessionHelper.hxx
index afbfa92b47cf..2bb0ff741334 100644
--- a/shell/source/sessioninstall/SyncDbusSessionHelper.hxx
+++ b/shell/source/sessioninstall/SyncDbusSessionHelper.hxx
@@ -24,31 +24,31 @@ namespace shell { namespace sessioninstall
virtual ~SyncDbusSessionHelper() override {}
// XModify Methods
- virtual void SAL_CALL InstallPackageFiles( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL InstallPackageFiles( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) override;
- virtual void SAL_CALL InstallProvideFiles( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL InstallProvideFiles( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) override;
- virtual void SAL_CALL InstallCatalogs( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL InstallCatalogs( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) override;
- virtual void SAL_CALL InstallPackageNames( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& packages, const OUString& interaction ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL InstallPackageNames( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& packages, const OUString& interaction ) override;
- virtual void SAL_CALL InstallMimeTypes( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& mimeTypes, const OUString& interaction ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL InstallMimeTypes( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& mimeTypes, const OUString& interaction ) override;
- virtual void SAL_CALL InstallFontconfigResources( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& resources, const OUString& interaction ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL InstallFontconfigResources( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& resources, const OUString& interaction ) override;
- virtual void SAL_CALL InstallGStreamerResources( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& resources, const OUString& interaction ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL InstallGStreamerResources( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& resources, const OUString& interaction ) override;
- virtual void SAL_CALL InstallResources( ::sal_uInt32 /* xid */, const css::uno::Sequence< OUString >& /* types */, const css::uno::Sequence< OUString >& /* resources */, const OUString& /* interaction */ ) throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL InstallResources( ::sal_uInt32 /* xid */, const css::uno::Sequence< OUString >& /* types */, const css::uno::Sequence< OUString >& /* resources */, const OUString& /* interaction */ ) override
{ throw css::uno::RuntimeException(); } // not implemented
- virtual void SAL_CALL RemovePackageByFiles( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL RemovePackageByFiles( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) override;
- virtual void SAL_CALL InstallPrinterDrivers( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL InstallPrinterDrivers( ::sal_uInt32 xid, const css::uno::Sequence< OUString >& files, const OUString& interaction ) override;
// XQuery Methods
- virtual void SAL_CALL IsInstalled( const OUString& /* package_name */, const OUString& /* interaction */, sal_Bool& /* installed */ ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL IsInstalled( const OUString& /* package_name */, const OUString& /* interaction */, sal_Bool& /* installed */ ) override;
- virtual void SAL_CALL SearchFile( const OUString& /* file_name */, const OUString& /* interaction */, sal_Bool& /* installed */, OUString& /* package_name */ ) throw (css::uno::RuntimeException, std::exception) override
+ virtual void SAL_CALL SearchFile( const OUString& /* file_name */, const OUString& /* interaction */, sal_Bool& /* installed */, OUString& /* package_name */ ) override
{ throw css::uno::RuntimeException(); } // not implemented
private:
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 002e3a55570d..b7ef8b816950 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -96,7 +96,6 @@ ShellExec::ShellExec( const Reference< XComponentContext >& xContext ) :
}
void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags )
- throw (IllegalArgumentException, SystemShellExecuteException, RuntimeException, std::exception)
{
OStringBuffer aBuffer, aLaunchBuffer;
@@ -213,19 +212,16 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
// XServiceInfo
OUString SAL_CALL ShellExec::getImplementationName( )
- throw( RuntimeException, std::exception )
{
return OUString("com.sun.star.comp.system.SystemShellExecute");
}
sal_Bool SAL_CALL ShellExec::supportsService( const OUString& ServiceName )
- throw( RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
Sequence< OUString > SAL_CALL ShellExec::getSupportedServiceNames( )
- throw( RuntimeException, std::exception )
{
return ShellExec_getSupportedServiceNames();
}
diff --git a/shell/source/unix/exec/shellexec.hxx b/shell/source/unix/exec/shellexec.hxx
index 85f3d17c91b6..d00c8d0a88c5 100644
--- a/shell/source/unix/exec/shellexec.hxx
+++ b/shell/source/unix/exec/shellexec.hxx
@@ -43,21 +43,17 @@ public:
// XSystemShellExecute
- virtual void SAL_CALL execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags )
- throw (css::lang::IllegalArgumentException, css::system::SystemShellExecuteException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
};
#endif
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx
index c69d3f2a0c59..4a2b97c83229 100644
--- a/shell/source/win32/SysShExec.cxx
+++ b/shell/source/win32/SysShExec.cxx
@@ -244,7 +244,6 @@ CSysShExec::CSysShExec( const Reference< css::uno::XComponentContext >& xContext
}
void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags )
- throw (IllegalArgumentException, SystemShellExecuteException, RuntimeException)
{
// parameter checking
if (0 == aCommand.getLength())
@@ -328,19 +327,16 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa
// XServiceInfo
OUString SAL_CALL CSysShExec::getImplementationName( )
- throw( RuntimeException )
{
return OUString(SYSSHEXEC_IMPL_NAME );
}
sal_Bool SAL_CALL CSysShExec::supportsService( const OUString& ServiceName )
- throw( RuntimeException )
{
return cppu::supportsService(this, ServiceName);
}
Sequence< OUString > SAL_CALL CSysShExec::getSupportedServiceNames( )
- throw( RuntimeException )
{
return SysShExec_getSupportedServiceNames();
}
diff --git a/shell/source/win32/SysShExec.hxx b/shell/source/win32/SysShExec.hxx
index 49cc910e7ed0..24051920b399 100644
--- a/shell/source/win32/SysShExec.hxx
+++ b/shell/source/win32/SysShExec.hxx
@@ -52,21 +52,17 @@ public:
// XSystemShellExecute
- virtual void SAL_CALL execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags )
- throw (css::lang::IllegalArgumentException, css::system::SystemShellExecuteException, css::uno::RuntimeException) override;
+ virtual void SAL_CALL execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( )
- throw(css::uno::RuntimeException) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(css::uno::RuntimeException) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
- throw(css::uno::RuntimeException) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
};
#endif
diff --git a/shell/source/win32/simplemail/smplmailclient.cxx b/shell/source/win32/simplemail/smplmailclient.cxx
index 5fcc2fac700f..c29bc044d0a1 100644
--- a/shell/source/win32/simplemail/smplmailclient.cxx
+++ b/shell/source/win32/simplemail/smplmailclient.cxx
@@ -150,7 +150,6 @@ namespace /* private */
} // namespace private
Reference<XSimpleMailMessage> SAL_CALL CSmplMailClient::createSimpleMailMessage()
- throw (RuntimeException)
{
return Reference<XSimpleMailMessage>(new CSmplMailMsg());
}
@@ -248,7 +247,6 @@ void CSmplMailClient::assembleCommandLine(
void SAL_CALL CSmplMailClient::sendSimpleMailMessage(
const Reference<XSimpleMailMessage>& xSimpleMailMessage, sal_Int32 aFlag)
- throw (IllegalArgumentException, Exception, RuntimeException)
{
validateParameter(xSimpleMailMessage, aFlag);
diff --git a/shell/source/win32/simplemail/smplmailclient.hxx b/shell/source/win32/simplemail/smplmailclient.hxx
index 2da936a95340..4a744c289eec 100644
--- a/shell/source/win32/simplemail/smplmailclient.hxx
+++ b/shell/source/win32/simplemail/smplmailclient.hxx
@@ -29,11 +29,9 @@
class CSmplMailClient : public cppu::WeakImplHelper<css::system::XSimpleMailClient>
{
public:
- virtual css::uno::Reference<css::system::XSimpleMailMessage> SAL_CALL createSimpleMailMessage()
- throw (css::uno::RuntimeException) override;
+ virtual css::uno::Reference<css::system::XSimpleMailMessage> SAL_CALL createSimpleMailMessage() override;
- virtual void SAL_CALL sendSimpleMailMessage(const css::uno::Reference<css::system::XSimpleMailMessage>& xSimpleMailMessage, sal_Int32 aFlag)
- throw (css::lang::IllegalArgumentException, css::uno::Exception, css::uno::RuntimeException) override;
+ virtual void SAL_CALL sendSimpleMailMessage(const css::uno::Reference<css::system::XSimpleMailMessage>& xSimpleMailMessage, sal_Int32 aFlag) override;
private:
void validateParameter(const css::uno::Reference<css::system::XSimpleMailMessage>& xSimpleMailMessage, sal_Int32 aFlag);
diff --git a/shell/source/win32/simplemail/smplmailmsg.cxx b/shell/source/win32/simplemail/smplmailmsg.cxx
index 5d6d46e5390b..19b8dd695652 100644
--- a/shell/source/win32/simplemail/smplmailmsg.cxx
+++ b/shell/source/win32/simplemail/smplmailmsg.cxx
@@ -33,85 +33,71 @@ CSmplMailMsg::CSmplMailMsg( )
}
void SAL_CALL CSmplMailMsg::setBody( const ::rtl::OUString& aBody )
- throw (RuntimeException)
{
m_aBody = aBody;
}
::rtl::OUString SAL_CALL CSmplMailMsg::getBody( )
- throw (RuntimeException)
{
return m_aBody;
}
void SAL_CALL CSmplMailMsg::setRecipient( const OUString& aRecipient )
- throw (RuntimeException)
{
m_aRecipient = aRecipient;
}
OUString SAL_CALL CSmplMailMsg::getRecipient( )
- throw (RuntimeException)
{
return m_aRecipient;
}
void SAL_CALL CSmplMailMsg::setCcRecipient( const Sequence< OUString >& aCcRecipient )
- throw (RuntimeException)
{
m_CcRecipients = aCcRecipient;
}
Sequence< OUString > SAL_CALL CSmplMailMsg::getCcRecipient( )
- throw (RuntimeException)
{
return m_CcRecipients;
}
void SAL_CALL CSmplMailMsg::setBccRecipient( const Sequence< OUString >& aBccRecipient )
- throw (RuntimeException)
{
m_BccRecipients = aBccRecipient;
}
Sequence< OUString > SAL_CALL CSmplMailMsg::getBccRecipient( )
- throw (RuntimeException)
{
return m_BccRecipients;
}
void SAL_CALL CSmplMailMsg::setOriginator( const OUString& aOriginator )
- throw (RuntimeException)
{
m_aOriginator = aOriginator;
}
OUString SAL_CALL CSmplMailMsg::getOriginator( )
- throw (RuntimeException)
{
return m_aOriginator;
}
void SAL_CALL CSmplMailMsg::setSubject( const OUString& aSubject )
- throw (RuntimeException)
{
m_aSubject = aSubject;
}
OUString SAL_CALL CSmplMailMsg::getSubject( )
- throw (RuntimeException)
{
return m_aSubject;
}
void SAL_CALL CSmplMailMsg::setAttachement( const Sequence< OUString >& aAttachement )
- throw (IllegalArgumentException, RuntimeException)
{
m_Attachements = aAttachement;
}
Sequence< OUString > SAL_CALL CSmplMailMsg::getAttachement( )
- throw (RuntimeException)
{
return m_Attachements;
}
diff --git a/shell/source/win32/simplemail/smplmailmsg.hxx b/shell/source/win32/simplemail/smplmailmsg.hxx
index afdc9ec12a28..ef87341c03b5 100644
--- a/shell/source/win32/simplemail/smplmailmsg.hxx
+++ b/shell/source/win32/simplemail/smplmailmsg.hxx
@@ -34,53 +34,39 @@ class CSmplMailMsg : public cppu::WeakImplHelper< css::system::XSimpleMailMessag
public:
CSmplMailMsg( );
- virtual void SAL_CALL setBody( const ::rtl::OUString& aBody )
- throw (css::uno::RuntimeException) override;
+ virtual void SAL_CALL setBody( const ::rtl::OUString& aBody ) override;
- virtual ::rtl::OUString SAL_CALL getBody( )
- throw (css::uno::RuntimeException) override;
+ virtual ::rtl::OUString SAL_CALL getBody( ) override;
- virtual void SAL_CALL setRecipient( const OUString& aRecipient )
- throw (css::uno::RuntimeException) override;
+ virtual void SAL_CALL setRecipient( const OUString& aRecipient ) override;
- virtual OUString SAL_CALL getRecipient( )
- throw (css::uno::RuntimeException) override;
+ virtual OUString SAL_CALL getRecipient( ) override;
- virtual void SAL_CALL setCcRecipient( const css::uno::Sequence< OUString >& aCcRecipient )
- throw (css::uno::RuntimeException) override;
+ virtual void SAL_CALL setCcRecipient( const css::uno::Sequence< OUString >& aCcRecipient ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getCcRecipient( )
- throw (css::uno::RuntimeException) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getCcRecipient( ) override;
- virtual void SAL_CALL setBccRecipient( const css::uno::Sequence< OUString >& aBccRecipient )
- throw (css::uno::RuntimeException) override;
+ virtual void SAL_CALL setBccRecipient( const css::uno::Sequence< OUString >& aBccRecipient ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getBccRecipient( )
- throw (css::uno::RuntimeException) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getBccRecipient( ) override;
- virtual void SAL_CALL setOriginator( const OUString& aOriginator )
- throw (css::uno::RuntimeException) override;
+ virtual void SAL_CALL setOriginator( const OUString& aOriginator ) override;
- virtual OUString SAL_CALL getOriginator( )
- throw (css::uno::RuntimeException) override;
+ virtual OUString SAL_CALL getOriginator( ) override;
- virtual void SAL_CALL setSubject( const OUString& aSubject )
- throw (css::uno::RuntimeException) override;
+ virtual void SAL_CALL setSubject( const OUString& aSubject ) override;
- virtual OUString SAL_CALL getSubject( )
- throw (css::uno::RuntimeException) override;
+ virtual OUString SAL_CALL getSubject( ) override;
- virtual void SAL_CALL setAttachement( const css::uno::Sequence< OUString >& aAttachement )
- throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) override;
+ virtual void SAL_CALL setAttachement( const css::uno::Sequence< OUString >& aAttachement ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getAttachement( )
- throw (css::uno::RuntimeException) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getAttachement( ) override;
private:
OUString m_aBody;
diff --git a/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx
index 317ec942f7dd..e86544647ed6 100644
--- a/shell/source/win32/simplemail/smplmailsuppl.cxx
+++ b/shell/source/win32/simplemail/smplmailsuppl.cxx
@@ -53,7 +53,6 @@ CSmplMailSuppl::~CSmplMailSuppl()
}
Reference<XSimpleMailClient> SAL_CALL CSmplMailSuppl::querySimpleMailClient()
- throw (RuntimeException)
{
/* We just try to load the MAPI dll as a test
if a mail client is available */
@@ -70,19 +69,16 @@ Reference<XSimpleMailClient> SAL_CALL CSmplMailSuppl::querySimpleMailClient()
// XServiceInfo
OUString SAL_CALL CSmplMailSuppl::getImplementationName()
- throw(RuntimeException)
{
return OUString(COMP_IMPL_NAME);
}
sal_Bool SAL_CALL CSmplMailSuppl::supportsService(const OUString& ServiceName)
- throw(RuntimeException)
{
return cppu::supportsService(this, ServiceName);
}
Sequence<OUString> SAL_CALL CSmplMailSuppl::getSupportedServiceNames()
- throw(RuntimeException)
{
return Component_getSupportedServiceNames();
}
diff --git a/shell/source/win32/simplemail/smplmailsuppl.hxx b/shell/source/win32/simplemail/smplmailsuppl.hxx
index 28414737f7b3..9c5496065d3c 100644
--- a/shell/source/win32/simplemail/smplmailsuppl.hxx
+++ b/shell/source/win32/simplemail/smplmailsuppl.hxx
@@ -45,18 +45,14 @@ public:
~CSmplMailSuppl( ) override;
// XSimpleMailClientSupplier
- virtual css::uno::Reference< css::system::XSimpleMailClient > SAL_CALL querySimpleMailClient( )
- throw (css::uno::RuntimeException) override;
+ virtual css::uno::Reference< css::system::XSimpleMailClient > SAL_CALL querySimpleMailClient( ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName( )
- throw(css::uno::RuntimeException) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(css::uno::RuntimeException) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
- throw(css::uno::RuntimeException) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
};
#endif