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 /starmath | |
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 'starmath')
-rw-r--r-- | starmath/inc/mathml/mathmlexport.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/mathml/mathmlimport.hxx | 4 | ||||
-rw-r--r-- | starmath/inc/unomodel.hxx | 6 | ||||
-rw-r--r-- | starmath/source/mathml/mathmlexport.cxx | 2 | ||||
-rw-r--r-- | starmath/source/mathml/mathmlimport.cxx | 4 | ||||
-rw-r--r-- | starmath/source/unomodel.cxx | 6 |
6 files changed, 12 insertions, 12 deletions
diff --git a/starmath/inc/mathml/mathmlexport.hxx b/starmath/inc/mathml/mathmlexport.hxx index eae2dd4d7423..b7c054440c8a 100644 --- a/starmath/inc/mathml/mathmlexport.hxx +++ b/starmath/inc/mathml/mathmlexport.hxx @@ -110,7 +110,7 @@ public: // XUnoTunnel sal_Int64 SAL_CALL getSomething(const css::uno::Sequence<sal_Int8>& rId) override; - static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() throw(); + static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() noexcept; void ExportAutoStyles_() override {} void ExportMasterStyles_() override {} diff --git a/starmath/inc/mathml/mathmlimport.hxx b/starmath/inc/mathml/mathmlimport.hxx index 9b3fe5c88b0b..4e5444945f7e 100644 --- a/starmath/inc/mathml/mathmlimport.hxx +++ b/starmath/inc/mathml/mathmlimport.hxx @@ -81,11 +81,11 @@ class SmXMLImport : public SvXMLImport public: SmXMLImport(const css::uno::Reference<css::uno::XComponentContext>& rContext, OUString const& implementationName, SvXMLImportFlags nImportFlags); - virtual ~SmXMLImport() throw() override; + virtual ~SmXMLImport() noexcept override; // XUnoTunnel sal_Int64 SAL_CALL getSomething(const css::uno::Sequence<sal_Int8>& rId) override; - static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() throw(); + static const css::uno::Sequence<sal_Int8>& getUnoTunnelId() noexcept; void SAL_CALL endDocument() override; diff --git a/starmath/inc/unomodel.hxx b/starmath/inc/unomodel.hxx index b54c762ac125..c01eaec1e8fb 100644 --- a/starmath/inc/unomodel.hxx +++ b/starmath/inc/unomodel.hxx @@ -54,12 +54,12 @@ class SmModel final : public SfxBaseModel, virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, css::uno::Any* pValue ) override; public: explicit SmModel( SfxObjectShell *pObjSh ); - virtual ~SmModel() throw () override; + virtual ~SmModel() noexcept override; //XInterface virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override; - virtual void SAL_CALL acquire( ) throw() override; - virtual void SAL_CALL release( ) throw() override; + virtual void SAL_CALL acquire( ) noexcept override; + virtual void SAL_CALL release( ) noexcept override; //XTypeProvider virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override; diff --git a/starmath/source/mathml/mathmlexport.cxx b/starmath/source/mathml/mathmlexport.cxx index 7338e7a400a2..450b81bc2f59 100644 --- a/starmath/source/mathml/mathmlexport.cxx +++ b/starmath/source/mathml/mathmlexport.cxx @@ -329,7 +329,7 @@ sal_Int64 SAL_CALL SmXMLExport::getSomething(const uno::Sequence<sal_Int8>& rId) return SvXMLExport::getSomething(rId); } -const uno::Sequence<sal_Int8>& SmXMLExport::getUnoTunnelId() throw() +const uno::Sequence<sal_Int8>& SmXMLExport::getUnoTunnelId() noexcept { static const UnoTunnelIdInit theSmXMLExportUnoTunnelId; return theSmXMLExportUnoTunnelId.getSeq(); diff --git a/starmath/source/mathml/mathmlimport.cxx b/starmath/source/mathml/mathmlimport.cxx index 6b7659074005..270e6911281c 100644 --- a/starmath/source/mathml/mathmlimport.cxx +++ b/starmath/source/mathml/mathmlimport.cxx @@ -406,7 +406,7 @@ SmXMLImport::SmXMLImport(const css::uno::Reference<css::uno::XComponentContext>& { } -const uno::Sequence<sal_Int8>& SmXMLImport::getUnoTunnelId() throw() +const uno::Sequence<sal_Int8>& SmXMLImport::getUnoTunnelId() noexcept { static const UnoTunnelIdInit theSmXMLImportUnoTunnelId; return theSmXMLImportUnoTunnelId.getSeq(); @@ -2573,7 +2573,7 @@ SmXMLImport::CreateFastContext(sal_Int32 nElement, return pContext; } -SmXMLImport::~SmXMLImport() throw() { cleanup(); } +SmXMLImport::~SmXMLImport() noexcept { cleanup(); } void SmXMLImport::SetViewSettings(const Sequence<PropertyValue>& aViewProps) { diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index de29e8260812..20bc4f35280f 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -312,7 +312,7 @@ SmModel::SmModel( SfxObjectShell *pObjSh ) { } -SmModel::~SmModel() throw () +SmModel::~SmModel() noexcept { } @@ -333,12 +333,12 @@ uno::Any SAL_CALL SmModel::queryInterface( const uno::Type& rType ) return aRet; } -void SAL_CALL SmModel::acquire() throw() +void SAL_CALL SmModel::acquire() noexcept { OWeakObject::acquire(); } -void SAL_CALL SmModel::release() throw() +void SAL_CALL SmModel::release() noexcept { OWeakObject::release(); } |