summaryrefslogtreecommitdiff
path: root/include/svl
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 /include/svl
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 'include/svl')
-rw-r--r--include/svl/itemprop.hxx45
-rw-r--r--include/svl/numuno.hxx9
-rw-r--r--include/svl/style.hxx2
3 files changed, 17 insertions, 39 deletions
diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx
index 9bc67a7df466..8e1c44afa456 100644
--- a/include/svl/itemprop.hxx
+++ b/include/svl/itemprop.hxx
@@ -97,8 +97,7 @@ public:
const SfxItemPropertySimpleEntry* getByName( const OUString &rName ) const;
css::uno::Sequence< css::beans::Property > getProperties() const;
/// @throws css::beans::UnknownPropertyException
- css::beans::Property getPropertyByName( const OUString & rName ) const
- throw( css::beans::UnknownPropertyException );
+ css::beans::Property getPropertyByName( const OUString & rName ) const;
bool hasPropertyByName( const OUString& rName ) const;
void mergeProperties( const css::uno::Sequence< css::beans::Property >& rPropSeq );
@@ -120,43 +119,32 @@ public:
/// @throws css::uno::RuntimeException
void getPropertyValue( const SfxItemPropertySimpleEntry& rEntry,
const SfxItemSet& rSet,
- css::uno::Any& rAny) const
- throw(css::uno::RuntimeException);
+ css::uno::Any& rAny) const;
/// @throws css::uno::RuntimeException
/// @throws css::beans::UnknownPropertyException
void getPropertyValue( const OUString &rName,
const SfxItemSet& rSet,
- css::uno::Any& rAny) const
- throw(css::uno::RuntimeException,
- css::beans::UnknownPropertyException);
+ css::uno::Any& rAny) const;
/// @throws css::uno::RuntimeException
/// @throws css::beans::UnknownPropertyException
css::uno::Any
getPropertyValue( const OUString &rName,
- const SfxItemSet& rSet ) const
- throw(css::uno::RuntimeException,
- css::beans::UnknownPropertyException);
+ const SfxItemSet& rSet ) const;
/// @throws css::uno::RuntimeException
/// @throws css::lang::IllegalArgumentException
void setPropertyValue( const SfxItemPropertySimpleEntry& rEntry,
const css::uno::Any& aVal,
- SfxItemSet& rSet ) const
- throw(css::uno::RuntimeException,
- css::lang::IllegalArgumentException);
+ SfxItemSet& rSet ) const;
/// @throws css::uno::RuntimeException
/// @throws css::lang::IllegalArgumentException
/// @throws css::beans::UnknownPropertyException
void setPropertyValue( const OUString& rPropertyName,
const css::uno::Any& aVal,
- SfxItemSet& rSet ) const
- throw(css::uno::RuntimeException,
- css::lang::IllegalArgumentException,
- css::beans::UnknownPropertyException);
+ SfxItemSet& rSet ) const;
/// @throws css::beans::UnknownPropertyException
css::beans::PropertyState
- getPropertyState(const OUString& rName, const SfxItemSet& rSet)const
- throw(css::beans::UnknownPropertyException);
+ getPropertyState(const OUString& rName, const SfxItemSet& rSet)const;
css::beans::PropertyState
getPropertyState(const SfxItemPropertySimpleEntry& rEntry, const SfxItemSet& rSet) const
throw();
@@ -177,17 +165,13 @@ public:
virtual ~SfxItemPropertySetInfo() override;
virtual css::uno::Sequence< css::beans::Property > SAL_CALL
- getProperties( )
- throw(css::uno::RuntimeException, std::exception) override;
+ getProperties( ) override;
virtual css::beans::Property SAL_CALL
- getPropertyByName( const OUString& aName )
- throw(css::beans::UnknownPropertyException,
- css::uno::RuntimeException, std::exception) override;
+ getPropertyByName( const OUString& aName ) override;
virtual sal_Bool SAL_CALL
- hasPropertyByName( const OUString& Name )
- throw(css::uno::RuntimeException, std::exception) override;
+ hasPropertyByName( const OUString& Name ) override;
};
@@ -201,16 +185,13 @@ public:
virtual ~SfxExtItemPropertySetInfo() override;
virtual css::uno::Sequence< css::beans::Property > SAL_CALL
- getProperties( )
- throw(css::uno::RuntimeException, std::exception) override;
+ getProperties( ) override;
virtual css::beans::Property SAL_CALL
- getPropertyByName( const OUString& aName )
- throw(css::beans::UnknownPropertyException, css::uno::RuntimeException, std::exception) override;
+ getPropertyByName( const OUString& aName ) override;
virtual sal_Bool SAL_CALL
- hasPropertyByName( const OUString& Name )
- throw(css::uno::RuntimeException, std::exception) override;
+ hasPropertyByName( const OUString& Name ) override;
};
#endif
diff --git a/include/svl/numuno.hxx b/include/svl/numuno.hxx
index 3a3aecc17065..58dce1dc66ec 100644
--- a/include/svl/numuno.hxx
+++ b/include/svl/numuno.hxx
@@ -55,15 +55,12 @@ public:
// XNumberFormatsSupplier
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL
- getNumberFormatSettings()
- throw(css::uno::RuntimeException, std::exception) override;
+ getNumberFormatSettings() override;
virtual css::uno::Reference< css::util::XNumberFormats > SAL_CALL
- getNumberFormats()
- throw(css::uno::RuntimeException, std::exception) override;
+ getNumberFormats() override;
// XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
static const css::uno::Sequence<sal_Int8>& getUnoTunnelId();
static SvNumberFormatsSupplierObj* getImplementation( const css::uno::Reference<
diff --git a/include/svl/style.hxx b/include/svl/style.hxx
index 69bc70f0dbd2..0233ce053f30 100644
--- a/include/svl/style.hxx
+++ b/include/svl/style.hxx
@@ -326,7 +326,7 @@ public:
static SfxUnoStyleSheet* getUnoStyleSheet( const css::uno::Reference< css::style::XStyle >& xStyle );
// XUnoTunnel
- virtual ::sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< ::sal_Int8 >& aIdentifier ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual ::sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< ::sal_Int8 >& aIdentifier ) override;
private:
static const css::uno::Sequence< ::sal_Int8 >& getIdentifier();