diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-04-30 08:20:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-05-02 17:02:28 +0200 |
commit | 10d29c390dd58ed629dd27fe5ed35fae28eceec3 (patch) | |
tree | 7476cbb90fff182c5bec0a5a1ef9c41a3ad29f19 /include/xmloff | |
parent | a9243e626193ab4efe3a618413886773336a38e6 (diff) |
throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite
Change-Id: I076f16d0536b534abf0ced4d76051eadb4c0e033
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114949
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/xmloff')
-rw-r--r-- | include/xmloff/shapeexport.hxx | 2 | ||||
-rw-r--r-- | include/xmloff/unoatrcn.hxx | 2 | ||||
-rw-r--r-- | include/xmloff/xmlictxt.hxx | 4 | ||||
-rw-r--r-- | include/xmloff/xmlimp.hxx | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/include/xmloff/shapeexport.hxx b/include/xmloff/shapeexport.hxx index d8641451cf4d..add92acf49c2 100644 --- a/include/xmloff/shapeexport.hxx +++ b/include/xmloff/shapeexport.hxx @@ -255,7 +255,7 @@ public: @see exportShapes */ void seekShapes( - const css::uno::Reference< css::drawing::XShapes >& xShapes ) throw(); + const css::uno::Reference< css::drawing::XShapes >& xShapes ) noexcept; void exportAutoStyles(); diff --git a/include/xmloff/unoatrcn.hxx b/include/xmloff/unoatrcn.hxx index 2773af3f86db..68baa3bd8b2e 100644 --- a/include/xmloff/unoatrcn.hxx +++ b/include/xmloff/unoatrcn.hxx @@ -52,7 +52,7 @@ public: SvUnoAttributeContainer( std::unique_ptr<SvXMLAttrContainerData> pContainer = nullptr ); SvXMLAttrContainerData* GetContainerImpl() const { return mpContainer.get(); } - static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId() throw(); + static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId() noexcept; virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override; // css::container::XElementAccess diff --git a/include/xmloff/xmlictxt.hxx b/include/xmloff/xmlictxt.hxx index 9fabd7509996..3a83ff4527ff 100644 --- a/include/xmloff/xmlictxt.hxx +++ b/include/xmloff/xmlictxt.hxx @@ -100,9 +100,9 @@ public: // XInterface virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) final override; - virtual void SAL_CALL acquire() throw () final override + virtual void SAL_CALL acquire() noexcept final override { osl_atomic_increment(&m_nRefCount); } - virtual void SAL_CALL release() throw () final override + virtual void SAL_CALL release() noexcept final override { if (osl_atomic_decrement(&m_nRefCount) == 0) delete this; } // XTypeProvider diff --git a/include/xmloff/xmlimp.hxx b/include/xmloff/xmlimp.hxx index 6ac9266094eb..dc01b88ed9ef 100644 --- a/include/xmloff/xmlimp.hxx +++ b/include/xmloff/xmlimp.hxx @@ -303,9 +303,9 @@ public: SvXMLImportFlags nImportFlags = SvXMLImportFlags::ALL, const css::uno::Sequence< OUString > & sSupportedServiceNames = {}); - void cleanup() throw(); + void cleanup() noexcept; - virtual ~SvXMLImport() throw() override; + virtual ~SvXMLImport() noexcept override; virtual void SAL_CALL startDocument() override; virtual void SAL_CALL endDocument() override; @@ -353,7 +353,7 @@ public: virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override; // XUnoTunnel - static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() throw(); + static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() noexcept; virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override; // XServiceInfo |