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/oox | |
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/oox')
-rw-r--r-- | include/oox/core/contexthandler2.hxx | 8 | ||||
-rw-r--r-- | include/oox/core/fragmenthandler2.hxx | 4 | ||||
-rw-r--r-- | include/oox/ppt/pptimport.hxx | 2 | ||||
-rw-r--r-- | include/oox/ppt/presentationfragmenthandler.hxx | 2 | ||||
-rw-r--r-- | include/oox/ppt/slidetimingcontext.hxx | 4 | ||||
-rw-r--r-- | include/oox/ppt/slidetransitioncontext.hxx | 4 | ||||
-rw-r--r-- | include/oox/ppt/soundactioncontext.hxx | 4 | ||||
-rw-r--r-- | include/oox/ppt/timenodelistcontext.hxx | 8 |
8 files changed, 18 insertions, 18 deletions
diff --git a/include/oox/core/contexthandler2.hxx b/include/oox/core/contexthandler2.hxx index 13b732dec7e5..4e256089ac8e 100644 --- a/include/oox/core/contexthandler2.hxx +++ b/include/oox/core/contexthandler2.hxx @@ -77,8 +77,8 @@ public: virtual ~ContextHandler2Helper(); // allow instances to be stored in ::rtl::Reference - virtual void SAL_CALL acquire() throw() = 0; - virtual void SAL_CALL release() throw() = 0; + virtual void SAL_CALL acquire() noexcept = 0; + virtual void SAL_CALL release() noexcept = 0; // interface -------------------------------------------------------------- @@ -231,8 +231,8 @@ public: ContextHandler2 & operator =(ContextHandler2 &&) = delete; // due to ContextHandler // resolve ambiguity from base classes - virtual void SAL_CALL acquire() throw() override { ContextHandler::acquire(); } - virtual void SAL_CALL release() throw() override { ContextHandler::release(); } + virtual void SAL_CALL acquire() noexcept override { ContextHandler::acquire(); } + virtual void SAL_CALL release() noexcept override { ContextHandler::release(); } // com.sun.star.xml.sax.XFastContextHandler interface --------------------- diff --git a/include/oox/core/fragmenthandler2.hxx b/include/oox/core/fragmenthandler2.hxx index d5d449847c17..86d1453f13a1 100644 --- a/include/oox/core/fragmenthandler2.hxx +++ b/include/oox/core/fragmenthandler2.hxx @@ -71,8 +71,8 @@ public: FragmentHandler2 & operator =(FragmentHandler2 &&) = delete; // due to FragmentHandler // resolve ambiguity from base classes - virtual void SAL_CALL acquire() throw() override { FragmentHandler::acquire(); } - virtual void SAL_CALL release() throw() override { FragmentHandler::release(); } + virtual void SAL_CALL acquire() noexcept override { FragmentHandler::acquire(); } + virtual void SAL_CALL release() noexcept override { FragmentHandler::release(); } // com.sun.star.xml.sax.XFastContextHandler interface --------------------- diff --git a/include/oox/ppt/pptimport.hxx b/include/oox/ppt/pptimport.hxx index e96f04b70374..eafb114b47fd 100644 --- a/include/oox/ppt/pptimport.hxx +++ b/include/oox/ppt/pptimport.hxx @@ -59,7 +59,7 @@ public: // from FilterBase virtual bool importDocument() override; - virtual bool exportDocument() throw() override; + virtual bool exportDocument() noexcept override; virtual const ::oox::drawingml::Theme* getCurrentTheme() const override; virtual ::oox::vml::Drawing* getVmlDrawing() override; diff --git a/include/oox/ppt/presentationfragmenthandler.hxx b/include/oox/ppt/presentationfragmenthandler.hxx index 4ec27efe28bf..bc68b738b5dd 100644 --- a/include/oox/ppt/presentationfragmenthandler.hxx +++ b/include/oox/ppt/presentationfragmenthandler.hxx @@ -42,7 +42,7 @@ class PresentationFragmentHandler final : public ::oox::core::FragmentHandler2 { public: PresentationFragmentHandler(::oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath); - virtual ~PresentationFragmentHandler() throw() override; + virtual ~PresentationFragmentHandler() noexcept override; virtual void finalizeImport() override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; diff --git a/include/oox/ppt/slidetimingcontext.hxx b/include/oox/ppt/slidetimingcontext.hxx index 6b32b2e23c9a..7b147ab85610 100644 --- a/include/oox/ppt/slidetimingcontext.hxx +++ b/include/oox/ppt/slidetimingcontext.hxx @@ -32,8 +32,8 @@ namespace oox::ppt { class SlideTimingContext final : public ::oox::core::FragmentHandler2 { public: - SlideTimingContext( ::oox::core::FragmentHandler2 const & rParent, TimeNodePtrList & aTimeNodeList ) throw(); - virtual ~SlideTimingContext() throw() override; + SlideTimingContext( ::oox::core::FragmentHandler2 const & rParent, TimeNodePtrList & aTimeNodeList ) noexcept; + virtual ~SlideTimingContext() noexcept override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; diff --git a/include/oox/ppt/slidetransitioncontext.hxx b/include/oox/ppt/slidetransitioncontext.hxx index 1c0755ab171b..f28b763c6b0d 100644 --- a/include/oox/ppt/slidetransitioncontext.hxx +++ b/include/oox/ppt/slidetransitioncontext.hxx @@ -37,8 +37,8 @@ namespace oox::ppt { public: SlideTransitionContext( ::oox::core::FragmentHandler2 const & rParent, const AttributeList& rAttributes, - PropertyMap & aProperties ) throw(); - virtual ~SlideTransitionContext() throw() override; + PropertyMap & aProperties ) noexcept; + virtual ~SlideTransitionContext() noexcept override; virtual void onEndElement() override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; diff --git a/include/oox/ppt/soundactioncontext.hxx b/include/oox/ppt/soundactioncontext.hxx index 81e7e81510b1..4bf66a5f713d 100644 --- a/include/oox/ppt/soundactioncontext.hxx +++ b/include/oox/ppt/soundactioncontext.hxx @@ -36,8 +36,8 @@ namespace oox::ppt { class SoundActionContext final : public ::oox::core::FragmentHandler2 { public: - SoundActionContext( ::oox::core::FragmentHandler2 const & rParent, PropertyMap & aProperties ) throw(); - virtual ~SoundActionContext() throw() override; + SoundActionContext( ::oox::core::FragmentHandler2 const & rParent, PropertyMap & aProperties ) noexcept; + virtual ~SoundActionContext() noexcept override; virtual void onEndElement() override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; diff --git a/include/oox/ppt/timenodelistcontext.hxx b/include/oox/ppt/timenodelistcontext.hxx index cd98d06b15fd..82e7e67b9038 100644 --- a/include/oox/ppt/timenodelistcontext.hxx +++ b/include/oox/ppt/timenodelistcontext.hxx @@ -38,12 +38,12 @@ namespace oox::ppt { class TimeNodeContext : public ::oox::core::FragmentHandler2 { public: - virtual ~TimeNodeContext() throw() override; + virtual ~TimeNodeContext() noexcept override; static rtl::Reference<TimeNodeContext> makeContext( ::oox::core::FragmentHandler2 const & rParent, sal_Int32 aElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, const TimeNodePtr & pNode ); protected: - TimeNodeContext( ::oox::core::FragmentHandler2 const & rParent, sal_Int32 aElement, const TimeNodePtr & pNode ) throw(); + TimeNodeContext( ::oox::core::FragmentHandler2 const & rParent, sal_Int32 aElement, const TimeNodePtr & pNode ) noexcept; sal_Int32 mnElement; TimeNodePtr mpNode; @@ -54,9 +54,9 @@ namespace oox::ppt { class TimeNodeListContext final : public ::oox::core::FragmentHandler2 { public: - TimeNodeListContext( ::oox::core::FragmentHandler2 const & rParent, TimeNodePtrList & aList ) throw(); + TimeNodeListContext( ::oox::core::FragmentHandler2 const & rParent, TimeNodePtrList & aList ) noexcept; - virtual ~TimeNodeListContext() throw() override; + virtual ~TimeNodeListContext() noexcept override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; |