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 /oox/source/ppt | |
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 'oox/source/ppt')
-rw-r--r-- | oox/source/ppt/animvariantcontext.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/animvariantcontext.hxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/commonbehaviorcontext.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/commonbehaviorcontext.hxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/commontimenodecontext.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/commontimenodecontext.hxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/conditioncontext.cxx | 4 | ||||
-rw-r--r-- | oox/source/ppt/conditioncontext.hxx | 4 | ||||
-rw-r--r-- | oox/source/ppt/extdrawingfragmenthandler.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/extdrawingfragmenthandler.hxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/pptimport.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/presentationfragmenthandler.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/slidetimingcontext.cxx | 4 | ||||
-rw-r--r-- | oox/source/ppt/slidetransitioncontext.cxx | 4 | ||||
-rw-r--r-- | oox/source/ppt/soundactioncontext.cxx | 4 | ||||
-rw-r--r-- | oox/source/ppt/timenodelistcontext.cxx | 24 | ||||
-rw-r--r-- | oox/source/ppt/timetargetelementcontext.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/timetargetelementcontext.hxx | 2 |
18 files changed, 34 insertions, 34 deletions
diff --git a/oox/source/ppt/animvariantcontext.cxx b/oox/source/ppt/animvariantcontext.cxx index 00adaaa1599c..5f2faf799de7 100644 --- a/oox/source/ppt/animvariantcontext.cxx +++ b/oox/source/ppt/animvariantcontext.cxx @@ -40,7 +40,7 @@ namespace oox::ppt { { } - AnimVariantContext::~AnimVariantContext( ) throw( ) + AnimVariantContext::~AnimVariantContext( ) noexcept { } diff --git a/oox/source/ppt/animvariantcontext.hxx b/oox/source/ppt/animvariantcontext.hxx index 25f7f7dfa9e1..8830e0e6a73a 100644 --- a/oox/source/ppt/animvariantcontext.hxx +++ b/oox/source/ppt/animvariantcontext.hxx @@ -33,7 +33,7 @@ namespace oox::ppt { { public: AnimVariantContext( ::oox::core::FragmentHandler2 const & rParent, ::sal_Int32 aElement, css::uno::Any & aValue ); - virtual ~AnimVariantContext( ) throw( ) override; + virtual ~AnimVariantContext( ) noexcept override; virtual void onEndElement() override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; diff --git a/oox/source/ppt/commonbehaviorcontext.cxx b/oox/source/ppt/commonbehaviorcontext.cxx index f0fd42c9d075..4ba40925a7e2 100644 --- a/oox/source/ppt/commonbehaviorcontext.cxx +++ b/oox/source/ppt/commonbehaviorcontext.cxx @@ -45,7 +45,7 @@ namespace oox::ppt { { } - CommonBehaviorContext::~CommonBehaviorContext( ) throw( ) + CommonBehaviorContext::~CommonBehaviorContext( ) noexcept { } diff --git a/oox/source/ppt/commonbehaviorcontext.hxx b/oox/source/ppt/commonbehaviorcontext.hxx index 423154b802df..eb6bc28fca36 100644 --- a/oox/source/ppt/commonbehaviorcontext.hxx +++ b/oox/source/ppt/commonbehaviorcontext.hxx @@ -42,7 +42,7 @@ namespace oox::ppt { CommonBehaviorContext( ::oox::core::FragmentHandler2 const & rParent, const TimeNodePtr & pNode ); virtual ~CommonBehaviorContext( ) - throw( ) override; + noexcept override; virtual void onEndElement() override; diff --git a/oox/source/ppt/commontimenodecontext.cxx b/oox/source/ppt/commontimenodecontext.cxx index 649d6eca2f84..e7d1cf1dce44 100644 --- a/oox/source/ppt/commontimenodecontext.cxx +++ b/oox/source/ppt/commontimenodecontext.cxx @@ -579,7 +579,7 @@ OUString getConvertedSubType( sal_Int16 nPresetClass, sal_Int32 nPresetId, sal_I xAttribs->getOptionalValue( XML_tmFilter ); } - CommonTimeNodeContext::~CommonTimeNodeContext( ) throw ( ) + CommonTimeNodeContext::~CommonTimeNodeContext( ) noexcept { } diff --git a/oox/source/ppt/commontimenodecontext.hxx b/oox/source/ppt/commontimenodecontext.hxx index 88695509f7ad..80ca749269e5 100644 --- a/oox/source/ppt/commontimenodecontext.hxx +++ b/oox/source/ppt/commontimenodecontext.hxx @@ -31,7 +31,7 @@ namespace oox::ppt { { public: CommonTimeNodeContext( ::oox::core::FragmentHandler2 const & rParent, sal_Int32 aElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, const TimeNodePtr & pNode); - virtual ~CommonTimeNodeContext( ) throw( ) override; + virtual ~CommonTimeNodeContext( ) noexcept override; virtual void onEndElement() override; diff --git a/oox/source/ppt/conditioncontext.cxx b/oox/source/ppt/conditioncontext.cxx index 50e10ae429c8..4a2145e3c540 100644 --- a/oox/source/ppt/conditioncontext.cxx +++ b/oox/source/ppt/conditioncontext.cxx @@ -94,7 +94,7 @@ namespace oox::ppt { } } - CondContext::~CondContext( ) throw( ) + CondContext::~CondContext( ) noexcept { if( maCond.mnType == 0 || maCond.mnType == PPT_TOKEN(tn)) { @@ -159,7 +159,7 @@ namespace oox::ppt { } CondListContext::~CondListContext( ) - throw( ) + noexcept { } diff --git a/oox/source/ppt/conditioncontext.hxx b/oox/source/ppt/conditioncontext.hxx index 095dd91ecf06..fd8d4dd109c4 100644 --- a/oox/source/ppt/conditioncontext.hxx +++ b/oox/source/ppt/conditioncontext.hxx @@ -36,7 +36,7 @@ namespace oox::ppt { CondContext( ::oox::core::FragmentHandler2 const & rParent, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttribs, const TimeNodePtr & pNode, AnimationCondition & aCond ); - virtual ~CondContext( ) throw( ) override; + virtual ~CondContext( ) noexcept override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; private: @@ -52,7 +52,7 @@ namespace oox::ppt { CondListContext( ::oox::core::FragmentHandler2 const & rParent, sal_Int32 aElement, const TimeNodePtr & pNode, AnimationConditionList & aCondList ); - virtual ~CondListContext( ) throw( ) override; + virtual ~CondListContext( ) noexcept override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; diff --git a/oox/source/ppt/extdrawingfragmenthandler.cxx b/oox/source/ppt/extdrawingfragmenthandler.cxx index 9bb24cbbd846..9aad170c1c4c 100644 --- a/oox/source/ppt/extdrawingfragmenthandler.cxx +++ b/oox/source/ppt/extdrawingfragmenthandler.cxx @@ -33,7 +33,7 @@ ExtDrawingFragmentHandler::ExtDrawingFragmentHandler( XmlFilterBase& rFilter, { } -ExtDrawingFragmentHandler::~ExtDrawingFragmentHandler( ) throw () +ExtDrawingFragmentHandler::~ExtDrawingFragmentHandler( ) noexcept { // Empty DrawingML fallback, need to warn the user at the end. if (mpShapePtr && mpShapePtr->getChildren().empty()) diff --git a/oox/source/ppt/extdrawingfragmenthandler.hxx b/oox/source/ppt/extdrawingfragmenthandler.hxx index 8d73cbacac13..22406f3d998f 100644 --- a/oox/source/ppt/extdrawingfragmenthandler.hxx +++ b/oox/source/ppt/extdrawingfragmenthandler.hxx @@ -23,7 +23,7 @@ public: const oox::ppt::ShapeLocation eShapeLocation, oox::drawingml::ShapePtr const & pGroupShapePtr, oox::drawingml::ShapePtr const & pShapePtr ); - virtual ~ExtDrawingFragmentHandler() throw() override; + virtual ~ExtDrawingFragmentHandler() noexcept override; virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const AttributeList& rAttribs ) override; diff --git a/oox/source/ppt/pptimport.cxx b/oox/source/ppt/pptimport.cxx index 128ff31d6267..573dbd0c4234 100644 --- a/oox/source/ppt/pptimport.cxx +++ b/oox/source/ppt/pptimport.cxx @@ -133,7 +133,7 @@ bool PowerPointImport::importDocument() } -bool PowerPointImport::exportDocument() throw() +bool PowerPointImport::exportDocument() noexcept { return false; } diff --git a/oox/source/ppt/presentationfragmenthandler.cxx b/oox/source/ppt/presentationfragmenthandler.cxx index 9e7308c7c496..a00b825d8c00 100644 --- a/oox/source/ppt/presentationfragmenthandler.cxx +++ b/oox/source/ppt/presentationfragmenthandler.cxx @@ -95,7 +95,7 @@ PresentationFragmentHandler::PresentationFragmentHandler(XmlFilterBase& rFilter, } } -PresentationFragmentHandler::~PresentationFragmentHandler() throw() +PresentationFragmentHandler::~PresentationFragmentHandler() noexcept { } diff --git a/oox/source/ppt/slidetimingcontext.cxx b/oox/source/ppt/slidetimingcontext.cxx index f05caf97cee7..300249446200 100644 --- a/oox/source/ppt/slidetimingcontext.cxx +++ b/oox/source/ppt/slidetimingcontext.cxx @@ -34,13 +34,13 @@ using namespace ::com::sun::star::xml::sax; namespace oox::ppt { -SlideTimingContext::SlideTimingContext( FragmentHandler2 const & rParent, TimeNodePtrList & aTimeNodeList ) throw() +SlideTimingContext::SlideTimingContext( FragmentHandler2 const & rParent, TimeNodePtrList & aTimeNodeList ) noexcept : FragmentHandler2( rParent ) , maTimeNodeList( aTimeNodeList ) { } -SlideTimingContext::~SlideTimingContext() throw() +SlideTimingContext::~SlideTimingContext() noexcept { } diff --git a/oox/source/ppt/slidetransitioncontext.cxx b/oox/source/ppt/slidetransitioncontext.cxx index dfd34a272147..8ec8e0fd82a0 100644 --- a/oox/source/ppt/slidetransitioncontext.cxx +++ b/oox/source/ppt/slidetransitioncontext.cxx @@ -33,7 +33,7 @@ using namespace ::com::sun::star::xml::sax; namespace oox::ppt { -SlideTransitionContext::SlideTransitionContext( FragmentHandler2 const & rParent, const AttributeList& rAttribs, PropertyMap & aProperties ) throw() +SlideTransitionContext::SlideTransitionContext( FragmentHandler2 const & rParent, const AttributeList& rAttribs, PropertyMap & aProperties ) noexcept : FragmentHandler2( rParent ) , maSlideProperties( aProperties ) , mbHasTransition( false ) @@ -62,7 +62,7 @@ SlideTransitionContext::SlideTransitionContext( FragmentHandler2 const & rParent maTransition.setOoxAdvanceTime( rAttribs.getInteger( XML_advTm, -1 ) ); } -SlideTransitionContext::~SlideTransitionContext() throw() +SlideTransitionContext::~SlideTransitionContext() noexcept { } diff --git a/oox/source/ppt/soundactioncontext.cxx b/oox/source/ppt/soundactioncontext.cxx index 4c9d242af092..bac5c6641ed9 100644 --- a/oox/source/ppt/soundactioncontext.cxx +++ b/oox/source/ppt/soundactioncontext.cxx @@ -38,7 +38,7 @@ using namespace ::com::sun::star::uno; namespace oox::ppt { - SoundActionContext::SoundActionContext( FragmentHandler2 const & rParent, PropertyMap & aProperties ) throw() + SoundActionContext::SoundActionContext( FragmentHandler2 const & rParent, PropertyMap & aProperties ) noexcept : FragmentHandler2( rParent ) , maSlideProperties( aProperties ) , mbHasStartSound( false ) @@ -47,7 +47,7 @@ namespace oox::ppt { { } - SoundActionContext::~SoundActionContext() throw() + SoundActionContext::~SoundActionContext() noexcept { } diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx index 93525ae4879a..13d9a1d090b9 100644 --- a/oox/source/ppt/timenodelistcontext.cxx +++ b/oox/source/ppt/timenodelistcontext.cxx @@ -223,7 +223,7 @@ namespace oox::ppt { } - virtual ~SetTimeNodeContext() throw () override + virtual ~SetTimeNodeContext() noexcept override { if(maTo.hasValue()) { @@ -442,7 +442,7 @@ namespace oox::ppt { public: AnimColorContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, - const TimeNodePtr & pNode ) throw() + const TimeNodePtr & pNode ) noexcept : TimeNodeContext( rParent, aElement, pNode ) , mnColorSpace( xAttribs->getOptionalValueToken( XML_clrSpc, 0 ) ) , mnDir( xAttribs->getOptionalValueToken( XML_dir, 0 ) ) @@ -533,7 +533,7 @@ namespace oox::ppt { public: AnimContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, - const TimeNodePtr & pNode ) throw() + const TimeNodePtr & pNode ) noexcept : TimeNodeContext( rParent, aElement, pNode ) { NodePropertyMap & aProps( pNode->getNodeProperties() ); @@ -565,7 +565,7 @@ namespace oox::ppt { mnValueType = xAttribs->getOptionalValueToken( XML_valueType, 0 ); } - virtual ~AnimContext() throw () override + virtual ~AnimContext() noexcept override { if (!msFrom.isEmpty()) { @@ -652,7 +652,7 @@ namespace oox::ppt { public: AnimScaleContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, - const TimeNodePtr & pNode ) throw() + const TimeNodePtr & pNode ) noexcept : TimeNodeContext( rParent, aElement, pNode ) , mbZoomContents( false ) { @@ -730,7 +730,7 @@ namespace oox::ppt { public: AnimRotContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, - const TimeNodePtr & pNode ) throw() + const TimeNodePtr & pNode ) noexcept : TimeNodeContext( rParent, aElement, pNode ) { AttributeList attribs( xAttribs ); @@ -777,7 +777,7 @@ namespace oox::ppt { public: AnimMotionContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, - const TimeNodePtr & pNode ) throw() + const TimeNodePtr & pNode ) noexcept : TimeNodeContext( rParent, aElement, pNode ) { pNode->getNodeProperties()[ NP_TRANSFORMTYPE ] @@ -872,7 +872,7 @@ namespace oox::ppt { public: AnimEffectContext( FragmentHandler2 const & rParent, sal_Int32 aElement, const Reference< XFastAttributeList >& xAttribs, - const TimeNodePtr & pNode ) throw() + const TimeNodePtr & pNode ) noexcept : TimeNodeContext( rParent, aElement, pNode ) { sal_Int32 nDir = xAttribs->getOptionalValueToken( XML_transition, 0 ); @@ -961,26 +961,26 @@ namespace oox::ppt { } TimeNodeContext::TimeNodeContext( FragmentHandler2 const & rParent, sal_Int32 aElement, - const TimeNodePtr & pNode ) throw() + const TimeNodePtr & pNode ) noexcept : FragmentHandler2( rParent ) , mnElement( aElement ) , mpNode( pNode ) { } - TimeNodeContext::~TimeNodeContext( ) throw() + TimeNodeContext::~TimeNodeContext( ) noexcept { } TimeNodeListContext::TimeNodeListContext( FragmentHandler2 const & rParent, TimeNodePtrList & aList ) - throw() + noexcept : FragmentHandler2( rParent ) , maList( aList ) { } - TimeNodeListContext::~TimeNodeListContext( ) throw() + TimeNodeListContext::~TimeNodeListContext( ) noexcept { } diff --git a/oox/source/ppt/timetargetelementcontext.cxx b/oox/source/ppt/timetargetelementcontext.cxx index 5c1ceb88523f..bf74b3353cfa 100644 --- a/oox/source/ppt/timetargetelementcontext.cxx +++ b/oox/source/ppt/timetargetelementcontext.cxx @@ -107,7 +107,7 @@ namespace oox::ppt { OSL_ENSURE( mpTarget, "no valid target passed" ); } - TimeTargetElementContext::~TimeTargetElementContext( ) throw( ) + TimeTargetElementContext::~TimeTargetElementContext( ) noexcept { } diff --git a/oox/source/ppt/timetargetelementcontext.hxx b/oox/source/ppt/timetargetelementcontext.hxx index db75f6908baa..29fed88b6aa1 100644 --- a/oox/source/ppt/timetargetelementcontext.hxx +++ b/oox/source/ppt/timetargetelementcontext.hxx @@ -31,7 +31,7 @@ namespace oox::ppt { { public: TimeTargetElementContext( ::oox::core::FragmentHandler2 const & rParent, const AnimTargetElementPtr & aValue ); - virtual ~TimeTargetElementContext( ) throw( ) override; + virtual ~TimeTargetElementContext( ) noexcept override; virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) override; private: |