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 /sc | |
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 'sc')
40 files changed, 104 insertions, 104 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index ca0dc2fcc2df..eb50b536f3ac 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -394,8 +394,8 @@ public: virtual ~ScCellRangesObj() override; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; virtual void RefChanged() override; @@ -502,8 +502,8 @@ public: virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; virtual void RefChanged() override; @@ -664,8 +664,8 @@ public: virtual ~ScCellObj() override; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; virtual void RefChanged() override; @@ -802,8 +802,8 @@ public: void InitInsertSheet(ScDocShell* pDocSh, SCTAB nTab); virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; // XSpreadsheet virtual css::uno::Reference< css::sheet::XSheetCellCursor > @@ -978,8 +978,8 @@ public: virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; // XNamed virtual OUString SAL_CALL getName() override; diff --git a/sc/inc/cursuno.hxx b/sc/inc/cursuno.hxx index bfa4235aa0ec..5ba9403e8237 100644 --- a/sc/inc/cursuno.hxx +++ b/sc/inc/cursuno.hxx @@ -35,8 +35,8 @@ public: virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; // XSheetCellCursor virtual void SAL_CALL collapseToCurrentRegion() override; diff --git a/sc/inc/dapiuno.hxx b/sc/inc/dapiuno.hxx index de09a32c870d..fe329213e2e5 100644 --- a/sc/inc/dapiuno.hxx +++ b/sc/inc/dapiuno.hxx @@ -241,8 +241,8 @@ public: virtual ~ScDataPilotTableObj() override; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx index 04db162fb95a..dd3f10e285e9 100644 --- a/sc/inc/docuno.hxx +++ b/sc/inc/docuno.hxx @@ -157,8 +157,8 @@ public: const css::uno::Sequence< css::beans::PropertyValue >& rProperties ); virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; diff --git a/sc/inc/drdefuno.hxx b/sc/inc/drdefuno.hxx index 5557fef451a8..8ccbdf06e2c9 100644 --- a/sc/inc/drdefuno.hxx +++ b/sc/inc/drdefuno.hxx @@ -31,12 +31,12 @@ private: public: ScDrawDefaultsObj(ScDocShell* pDocSh); - virtual ~ScDrawDefaultsObj() throw () override; + virtual ~ScDrawDefaultsObj() noexcept override; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; // from SvxUnoDrawPool - virtual SfxItemPool* getModelPool( bool bReadOnly ) throw() override; + virtual SfxItemPool* getModelPool( bool bReadOnly ) noexcept override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/inc/pageuno.hxx b/sc/inc/pageuno.hxx index 6fd0e60018ef..742b2aaa583a 100644 --- a/sc/inc/pageuno.hxx +++ b/sc/inc/pageuno.hxx @@ -27,7 +27,7 @@ class ScPageObj final : public SvxFmDrawPage { public: ScPageObj(SdrPage* pPage); - virtual ~ScPageObj() throw() override; + virtual ~ScPageObj() noexcept override; virtual css::uno::Reference<css::drawing::XShape> CreateShape(SdrObject* pObj) const override; diff --git a/sc/inc/shapeuno.hxx b/sc/inc/shapeuno.hxx index 9c7723ca232c..977c58be75c4 100644 --- a/sc/inc/shapeuno.hxx +++ b/sc/inc/shapeuno.hxx @@ -70,7 +70,7 @@ private: bool bIsTextShape; bool bIsNoteCaption; - SdrObject* GetSdrObject() const throw(); + SdrObject* GetSdrObject() const noexcept; void GetShapePropertySet(); void GetShapePropertyState(); @@ -88,8 +88,8 @@ public: // XInterface virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; // XPropertySet virtual css::uno::Reference< css::beans::XPropertySetInfo > diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx index be16478bbbfd..f04892515209 100644 --- a/sc/inc/textuno.hxx +++ b/sc/inc/textuno.hxx @@ -218,7 +218,7 @@ class ScCellTextCursor final : public SvxUnoTextCursor public: ScCellTextCursor(ScCellObj& rText); - virtual ~ScCellTextCursor() throw() override; + virtual ~ScCellTextCursor() noexcept override; ScCellTextCursor(ScCellTextCursor const &) = default; ScCellTextCursor(ScCellTextCursor &&) = default; @@ -246,7 +246,7 @@ private: public: ScHeaderFooterTextCursor(rtl::Reference<ScHeaderFooterTextObj> const & rText); - virtual ~ScHeaderFooterTextCursor() throw() override; + virtual ~ScHeaderFooterTextCursor() noexcept override; ScHeaderFooterTextCursor(ScHeaderFooterTextCursor const &) = default; ScHeaderFooterTextCursor(ScHeaderFooterTextCursor &&) = default; @@ -273,7 +273,7 @@ private: public: ScDrawTextCursor( const css::uno::Reference< css::text::XText >& xParent, const SvxUnoTextBase& rText ); - virtual ~ScDrawTextCursor() throw() override; + virtual ~ScDrawTextCursor() noexcept override; ScDrawTextCursor(ScDrawTextCursor const &) = default; ScDrawTextCursor(ScDrawTextCursor &&) = default; @@ -315,7 +315,7 @@ class ScEditEngineTextObj final : public ScSimpleEditSourceHelper, public SvxUno { public: ScEditEngineTextObj(); - virtual ~ScEditEngineTextObj() throw() override; + virtual ~ScEditEngineTextObj() noexcept override; void SetText( const EditTextObject& rTextObject ); std::unique_ptr<EditTextObject> CreateTextObject(); diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx index 5e954f86f2d7..4f428b3b6a39 100644 --- a/sc/inc/viewuno.hxx +++ b/sc/inc/viewuno.hxx @@ -118,8 +118,8 @@ public: virtual ~ScViewPaneObj() override; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; }; // OWeakObject is base of SfxBaseController -> use ScViewPaneBase @@ -174,8 +174,8 @@ public: virtual ~ScTabViewObj() override; virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) 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; void SelectionChanged(); void VisAreaChanged(); @@ -294,8 +294,8 @@ public: virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType) 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; virtual void Notify(SfxBroadcaster&, const SfxHint& rHint) override; diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index f98d81601f41..6c79d99469f1 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -961,7 +961,7 @@ sax_fastparser::FSHelperPtr XclExpXmlStream::CreateOutputStream ( return p; } -bool XclExpXmlStream::importDocument() throw() +bool XclExpXmlStream::importDocument() noexcept { return false; } diff --git a/sc/source/filter/inc/excelfilter.hxx b/sc/source/filter/inc/excelfilter.hxx index 2805733d89aa..be6783560551 100644 --- a/sc/source/filter/inc/excelfilter.hxx +++ b/sc/source/filter/inc/excelfilter.hxx @@ -38,7 +38,7 @@ public: void unregisterWorkbookGlobals(); 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/sc/source/filter/inc/xestream.hxx b/sc/source/filter/inc/xestream.hxx index 3dfdb87fbe40..669dadaec014 100644 --- a/sc/source/filter/inc/xestream.hxx +++ b/sc/source/filter/inc/xestream.hxx @@ -319,7 +319,7 @@ public: virtual bool exportDocument() override; // only needed for import; ignore - virtual bool importDocument() throw() override; + virtual bool importDocument() noexcept override; virtual oox::vml::Drawing* getVmlDrawing() override; virtual const oox::drawingml::Theme* getCurrentTheme() const override; virtual oox::drawingml::table::TableStyleListPtr getTableStyles() override; diff --git a/sc/source/filter/oox/excelfilter.cxx b/sc/source/filter/oox/excelfilter.cxx index 1989dfdb56db..b5d01215baf8 100644 --- a/sc/source/filter/oox/excelfilter.cxx +++ b/sc/source/filter/oox/excelfilter.cxx @@ -175,7 +175,7 @@ bool ExcelFilter::importDocument() return false; } -bool ExcelFilter::exportDocument() throw() +bool ExcelFilter::exportDocument() noexcept { return false; } diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index 9df7d551e88b..f8ff9bdde955 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -389,7 +389,7 @@ ScXMLImport::ScXMLImport( XML_NAMESPACE_PRESENTATION ); } -ScXMLImport::~ScXMLImport() throw() +ScXMLImport::~ScXMLImport() noexcept { pChangeTrackingImportHelper.reset(); pNumberFormatAttributesExportHelper.reset(); diff --git a/sc/source/filter/xml/xmlimprt.hxx b/sc/source/filter/xml/xmlimprt.hxx index 0bc5ca80092c..5c3eec947de7 100644 --- a/sc/source/filter/xml/xmlimprt.hxx +++ b/sc/source/filter/xml/xmlimprt.hxx @@ -182,7 +182,7 @@ public: OUString const & implementationName, SvXMLImportFlags nImportFlag, const css::uno::Sequence< OUString > & sSupportedServiceNames = {}); - virtual ~ScXMLImport() throw() override; + virtual ~ScXMLImport() noexcept override; // XInitialization virtual void SAL_CALL initialize( const css::uno::Sequence<css::uno::Any>& aArguments ) override; diff --git a/sc/source/ui/Accessibility/AccessibleCellBase.cxx b/sc/source/ui/Accessibility/AccessibleCellBase.cxx index 24ba0501255e..5d7e1d2c612c 100644 --- a/sc/source/ui/Accessibility/AccessibleCellBase.cxx +++ b/sc/source/ui/Accessibility/AccessibleCellBase.cxx @@ -173,13 +173,13 @@ uno::Any SAL_CALL ScAccessibleCellBase::queryInterface( uno::Type const & rType } void SAL_CALL ScAccessibleCellBase::acquire() - throw () + noexcept { ScAccessibleContextBase::acquire(); } void SAL_CALL ScAccessibleCellBase::release() - throw () + noexcept { ScAccessibleContextBase::release(); } diff --git a/sc/source/ui/Accessibility/AccessibleContextBase.cxx b/sc/source/ui/Accessibility/AccessibleContextBase.cxx index f775a1137459..b1d9cf3dfab6 100644 --- a/sc/source/ui/Accessibility/AccessibleContextBase.cxx +++ b/sc/source/ui/Accessibility/AccessibleContextBase.cxx @@ -107,13 +107,13 @@ uno::Any SAL_CALL ScAccessibleContextBase::queryInterface( uno::Type const & rTy } void SAL_CALL ScAccessibleContextBase::acquire() - throw () + noexcept { ScAccessibleContextBaseWeakImpl::acquire(); } void SAL_CALL ScAccessibleContextBase::release() - throw () + noexcept { ScAccessibleContextBaseWeakImpl::release(); } diff --git a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx index 2d16ba97311b..8bd4cef661bd 100644 --- a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx +++ b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx @@ -621,12 +621,12 @@ Any SAL_CALL ScAccessibleCsvRuler::queryInterface( const css::uno::Type& rType ) return aAny.hasValue() ? aAny : ScAccessibleCsvControl::queryInterface( rType ); } -void SAL_CALL ScAccessibleCsvRuler::acquire() throw () +void SAL_CALL ScAccessibleCsvRuler::acquire() noexcept { ScAccessibleCsvControl::acquire(); } -void SAL_CALL ScAccessibleCsvRuler::release() throw () +void SAL_CALL ScAccessibleCsvRuler::release() noexcept { ScAccessibleCsvControl::release(); } @@ -1109,12 +1109,12 @@ Any SAL_CALL ScAccessibleCsvGrid::queryInterface( const css::uno::Type& rType ) return aAny.hasValue() ? aAny : ScAccessibleCsvControl::queryInterface( rType ); } -void SAL_CALL ScAccessibleCsvGrid::acquire() throw () +void SAL_CALL ScAccessibleCsvGrid::acquire() noexcept { ScAccessibleCsvControl::acquire(); } -void SAL_CALL ScAccessibleCsvGrid::release() throw () +void SAL_CALL ScAccessibleCsvGrid::release() noexcept { ScAccessibleCsvControl::release(); } diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx index 2fcd982ae3a2..23f0d58e36b7 100644 --- a/sc/source/ui/Accessibility/AccessibleDocument.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx @@ -1615,13 +1615,13 @@ uno::Any SAL_CALL ScAccessibleDocument::queryInterface( uno::Type const & rType } void SAL_CALL ScAccessibleDocument::acquire() - throw () + noexcept { ScAccessibleContextBase::acquire(); } void SAL_CALL ScAccessibleDocument::release() - throw () + noexcept { ScAccessibleContextBase::release(); } diff --git a/sc/source/ui/Accessibility/AccessibleEditObject.cxx b/sc/source/ui/Accessibility/AccessibleEditObject.cxx index f9e792298c80..2f0c28998723 100644 --- a/sc/source/ui/Accessibility/AccessibleEditObject.cxx +++ b/sc/source/ui/Accessibility/AccessibleEditObject.cxx @@ -156,13 +156,13 @@ css::uno::Any SAL_CALL } void SAL_CALL ScAccessibleEditObject::acquire() - throw () + noexcept { ScAccessibleContextBase::acquire (); } void SAL_CALL ScAccessibleEditObject::release() - throw () + noexcept { ScAccessibleContextBase::release (); } diff --git a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx index c99fb36e8864..4e57e1c2a42a 100644 --- a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx +++ b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx @@ -115,13 +115,13 @@ uno::Any SAL_CALL ScAccessiblePreviewHeaderCell::queryInterface( uno::Type const } void SAL_CALL ScAccessiblePreviewHeaderCell::acquire() - throw () + noexcept { ScAccessibleContextBase::acquire(); } void SAL_CALL ScAccessiblePreviewHeaderCell::release() - throw () + noexcept { ScAccessibleContextBase::release(); } diff --git a/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx b/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx index 7eea5d79ebc2..6c38d4d81fba 100644 --- a/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx +++ b/sc/source/ui/Accessibility/AccessiblePreviewTable.cxx @@ -110,13 +110,13 @@ uno::Any SAL_CALL ScAccessiblePreviewTable::queryInterface( uno::Type const & rT } void SAL_CALL ScAccessiblePreviewTable::acquire() - throw () + noexcept { ScAccessibleContextBase::acquire(); } void SAL_CALL ScAccessiblePreviewTable::release() - throw () + noexcept { ScAccessibleContextBase::release(); } diff --git a/sc/source/ui/Accessibility/AccessibleTableBase.cxx b/sc/source/ui/Accessibility/AccessibleTableBase.cxx index a695f914de02..5877c1e36630 100644 --- a/sc/source/ui/Accessibility/AccessibleTableBase.cxx +++ b/sc/source/ui/Accessibility/AccessibleTableBase.cxx @@ -75,13 +75,13 @@ uno::Any SAL_CALL ScAccessibleTableBase::queryInterface( uno::Type const & rType } void SAL_CALL ScAccessibleTableBase::acquire() - throw () + noexcept { ScAccessibleContextBase::acquire(); } void SAL_CALL ScAccessibleTableBase::release() - throw () + noexcept { ScAccessibleContextBase::release(); } diff --git a/sc/source/ui/inc/AccessibleCellBase.hxx b/sc/source/ui/inc/AccessibleCellBase.hxx index b7226e31e9a3..6461501b9843 100644 --- a/sc/source/ui/inc/AccessibleCellBase.hxx +++ b/sc/source/ui/inc/AccessibleCellBase.hxx @@ -49,9 +49,9 @@ public: virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) override; - virtual void SAL_CALL acquire() throw () override; + virtual void SAL_CALL acquire() noexcept override; - virtual void SAL_CALL release() throw () override; + virtual void SAL_CALL release() noexcept override; ///===== XAccessibleComponent ============================================ diff --git a/sc/source/ui/inc/AccessibleContextBase.hxx b/sc/source/ui/inc/AccessibleContextBase.hxx index 01bfb2f5c573..fe71688b3cd6 100644 --- a/sc/source/ui/inc/AccessibleContextBase.hxx +++ b/sc/source/ui/inc/AccessibleContextBase.hxx @@ -84,9 +84,9 @@ public: virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) override; - virtual void SAL_CALL acquire() throw () override; + virtual void SAL_CALL acquire() noexcept override; - virtual void SAL_CALL release() throw () override; + virtual void SAL_CALL release() noexcept override; ///===== XAccessible ===================================================== diff --git a/sc/source/ui/inc/AccessibleCsvControl.hxx b/sc/source/ui/inc/AccessibleCsvControl.hxx index 95ec20fb4ff3..10a65fd9e05f 100644 --- a/sc/source/ui/inc/AccessibleCsvControl.hxx +++ b/sc/source/ui/inc/AccessibleCsvControl.hxx @@ -362,9 +362,9 @@ public: virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override; - virtual void SAL_CALL acquire() throw() override; + virtual void SAL_CALL acquire() noexcept override; - virtual void SAL_CALL release() throw() override; + virtual void SAL_CALL release() noexcept override; // XTypeProvider ---------------------------------------------------------- diff --git a/sc/source/ui/inc/AccessibleDocument.hxx b/sc/source/ui/inc/AccessibleDocument.hxx index e2c620a5e5a0..04a1eec44784 100644 --- a/sc/source/ui/inc/AccessibleDocument.hxx +++ b/sc/source/ui/inc/AccessibleDocument.hxx @@ -83,9 +83,9 @@ public: virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) override; - virtual void SAL_CALL acquire() throw () override; + virtual void SAL_CALL acquire() noexcept override; - virtual void SAL_CALL release() throw () override; + virtual void SAL_CALL release() noexcept override; ///===== XAccessibleComponent ============================================ diff --git a/sc/source/ui/inc/AccessibleEditObject.hxx b/sc/source/ui/inc/AccessibleEditObject.hxx index 6b734062dca8..eb672e3102d7 100644 --- a/sc/source/ui/inc/AccessibleEditObject.hxx +++ b/sc/source/ui/inc/AccessibleEditObject.hxx @@ -82,9 +82,9 @@ public: virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) override; - virtual void SAL_CALL acquire() throw () override; + virtual void SAL_CALL acquire() noexcept override; - virtual void SAL_CALL release() throw () override; + virtual void SAL_CALL release() noexcept override; ///===== XAccessibleComponent ============================================ virtual css::uno::Reference< css::accessibility::XAccessible > diff --git a/sc/source/ui/inc/AccessiblePreviewHeaderCell.hxx b/sc/source/ui/inc/AccessiblePreviewHeaderCell.hxx index 08fb125be012..bd762c4ab096 100644 --- a/sc/source/ui/inc/AccessiblePreviewHeaderCell.hxx +++ b/sc/source/ui/inc/AccessiblePreviewHeaderCell.hxx @@ -62,9 +62,9 @@ public: virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) override; - virtual void SAL_CALL acquire() throw () override; + virtual void SAL_CALL acquire() noexcept override; - virtual void SAL_CALL release() throw () override; + virtual void SAL_CALL release() noexcept override; //===== XAccessibleValue ================================================ diff --git a/sc/source/ui/inc/AccessiblePreviewTable.hxx b/sc/source/ui/inc/AccessiblePreviewTable.hxx index 25bae420c81f..555828801e2f 100644 --- a/sc/source/ui/inc/AccessiblePreviewTable.hxx +++ b/sc/source/ui/inc/AccessiblePreviewTable.hxx @@ -55,9 +55,9 @@ public: virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) override; - virtual void SAL_CALL acquire() throw () override; + virtual void SAL_CALL acquire() noexcept override; - virtual void SAL_CALL release() throw () override; + virtual void SAL_CALL release() noexcept override; //===== XAccessibleTable ================================================ diff --git a/sc/source/ui/inc/AccessibleTableBase.hxx b/sc/source/ui/inc/AccessibleTableBase.hxx index 7bde20e989d1..a9b56ff686fa 100644 --- a/sc/source/ui/inc/AccessibleTableBase.hxx +++ b/sc/source/ui/inc/AccessibleTableBase.hxx @@ -58,9 +58,9 @@ public: virtual css::uno::Any SAL_CALL queryInterface( css::uno::Type const & rType ) override; - virtual void SAL_CALL acquire() throw () override; + virtual void SAL_CALL acquire() noexcept override; - virtual void SAL_CALL release() throw () override; + virtual void SAL_CALL release() noexcept override; ///===== XAccessibleTable ================================================ diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index 7cf078fde6c5..811a9f19dc05 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -4029,12 +4029,12 @@ uno::Any SAL_CALL ScCellRangesObj::queryInterface( const uno::Type& rType ) return ScCellRangesBase::queryInterface( rType ); } -void SAL_CALL ScCellRangesObj::acquire() throw() +void SAL_CALL ScCellRangesObj::acquire() noexcept { ScCellRangesBase::acquire(); } -void SAL_CALL ScCellRangesObj::release() throw() +void SAL_CALL ScCellRangesObj::release() noexcept { ScCellRangesBase::release(); } @@ -4616,12 +4616,12 @@ uno::Any SAL_CALL ScCellRangeObj::queryInterface( const uno::Type& rType ) return ScCellRangesBase::queryInterface( rType ); } -void SAL_CALL ScCellRangeObj::acquire() throw() +void SAL_CALL ScCellRangeObj::acquire() noexcept { ScCellRangesBase::acquire(); } -void SAL_CALL ScCellRangeObj::release() throw() +void SAL_CALL ScCellRangeObj::release() noexcept { ScCellRangesBase::release(); } @@ -5848,12 +5848,12 @@ uno::Any SAL_CALL ScCellObj::queryInterface( const uno::Type& rType ) return ScCellRangeObj::queryInterface( rType ); } -void SAL_CALL ScCellObj::acquire() throw() +void SAL_CALL ScCellObj::acquire() noexcept { ScCellRangeObj::acquire(); } -void SAL_CALL ScCellObj::release() throw() +void SAL_CALL ScCellObj::release() noexcept { ScCellRangeObj::release(); } @@ -6610,12 +6610,12 @@ uno::Any SAL_CALL ScTableSheetObj::queryInterface( const uno::Type& rType ) return ScCellRangeObj::queryInterface( rType ); } -void SAL_CALL ScTableSheetObj::acquire() throw() +void SAL_CALL ScTableSheetObj::acquire() noexcept { ScCellRangeObj::acquire(); } -void SAL_CALL ScTableSheetObj::release() throw() +void SAL_CALL ScTableSheetObj::release() noexcept { ScCellRangeObj::release(); } @@ -8328,12 +8328,12 @@ uno::Any SAL_CALL ScTableColumnObj::queryInterface( const uno::Type& rType ) return ScCellRangeObj::queryInterface( rType ); } -void SAL_CALL ScTableColumnObj::acquire() throw() +void SAL_CALL ScTableColumnObj::acquire() noexcept { ScCellRangeObj::acquire(); } -void SAL_CALL ScTableColumnObj::release() throw() +void SAL_CALL ScTableColumnObj::release() noexcept { ScCellRangeObj::release(); } diff --git a/sc/source/ui/unoobj/cursuno.cxx b/sc/source/ui/unoobj/cursuno.cxx index 7928fceb0dbb..ea726a2baed0 100644 --- a/sc/source/ui/unoobj/cursuno.cxx +++ b/sc/source/ui/unoobj/cursuno.cxx @@ -50,12 +50,12 @@ uno::Any SAL_CALL ScCellCursorObj::queryInterface( const uno::Type& rType ) return ScCellRangeObj::queryInterface( rType ); } -void SAL_CALL ScCellCursorObj::acquire() throw() +void SAL_CALL ScCellCursorObj::acquire() noexcept { ScCellRangeObj::acquire(); } -void SAL_CALL ScCellCursorObj::release() throw() +void SAL_CALL ScCellCursorObj::release() noexcept { ScCellRangeObj::release(); } diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index e65a6e8b559b..b7d3b9f33290 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -1016,12 +1016,12 @@ Any SAL_CALL ScDataPilotTableObj::queryInterface( const uno::Type& rType ) return ScDataPilotDescriptorBase::queryInterface( rType ); } -void SAL_CALL ScDataPilotTableObj::acquire() throw() +void SAL_CALL ScDataPilotTableObj::acquire() noexcept { ScDataPilotDescriptorBase::acquire(); } -void SAL_CALL ScDataPilotTableObj::release() throw() +void SAL_CALL ScDataPilotTableObj::release() noexcept { ScDataPilotDescriptorBase::release(); } diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 1729c2ca1cdb..3bade0c6164a 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -1245,12 +1245,12 @@ uno::Any SAL_CALL ScModelObj::queryInterface( const uno::Type& rType ) return aRet; } -void SAL_CALL ScModelObj::acquire() throw() +void SAL_CALL ScModelObj::acquire() noexcept { SfxBaseModel::acquire(); } -void SAL_CALL ScModelObj::release() throw() +void SAL_CALL ScModelObj::release() noexcept { SfxBaseModel::release(); } diff --git a/sc/source/ui/unoobj/drdefuno.cxx b/sc/source/ui/unoobj/drdefuno.cxx index 8bff0a41f706..7ad5dc28ecb7 100644 --- a/sc/source/ui/unoobj/drdefuno.cxx +++ b/sc/source/ui/unoobj/drdefuno.cxx @@ -35,7 +35,7 @@ ScDrawDefaultsObj::ScDrawDefaultsObj(ScDocShell* pDocSh) : pDocShell->GetDocument().AddUnoObject(*this); } -ScDrawDefaultsObj::~ScDrawDefaultsObj() throw () +ScDrawDefaultsObj::~ScDrawDefaultsObj() noexcept { SolarMutexGuard g; @@ -51,7 +51,7 @@ void ScDrawDefaultsObj::Notify( SfxBroadcaster&, const SfxHint& rHint ) } } -SfxItemPool* ScDrawDefaultsObj::getModelPool( bool bReadOnly ) throw() +SfxItemPool* ScDrawDefaultsObj::getModelPool( bool bReadOnly ) noexcept { SfxItemPool* pRet = nullptr; diff --git a/sc/source/ui/unoobj/pageuno.cxx b/sc/source/ui/unoobj/pageuno.cxx index 5de45a583953..796d16e12e06 100644 --- a/sc/source/ui/unoobj/pageuno.cxx +++ b/sc/source/ui/unoobj/pageuno.cxx @@ -29,7 +29,7 @@ ScPageObj::ScPageObj( SdrPage* pPage ) : { } -ScPageObj::~ScPageObj() throw() +ScPageObj::~ScPageObj() noexcept { } diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx index 7f26e409866c..bce996f1ed59 100644 --- a/sc/source/ui/unoobj/shapeuno.cxx +++ b/sc/source/ui/unoobj/shapeuno.cxx @@ -139,12 +139,12 @@ uno::Any SAL_CALL ScShapeObj::queryInterface( const uno::Type& rType ) return aRet; } -void SAL_CALL ScShapeObj::acquire() throw() +void SAL_CALL ScShapeObj::acquire() noexcept { OWeakObject::acquire(); } -void SAL_CALL ScShapeObj::release() throw() +void SAL_CALL ScShapeObj::release() noexcept { OWeakObject::release(); } @@ -1304,7 +1304,7 @@ uno::Sequence<sal_Int8> SAL_CALL ScShapeObj::getImplementationId() return css::uno::Sequence<sal_Int8>(); } -SdrObject* ScShapeObj::GetSdrObject() const throw() +SdrObject* ScShapeObj::GetSdrObject() const noexcept { if(mxShapeAgg.is()) return SdrObject::getSdrObjectFromXShape( mxShapeAgg ); diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx index 346e784f0836..d04a2647db76 100644 --- a/sc/source/ui/unoobj/textuno.cxx +++ b/sc/source/ui/unoobj/textuno.cxx @@ -544,7 +544,7 @@ ScCellTextCursor::ScCellTextCursor(ScCellObj& rText) : { } -ScCellTextCursor::~ScCellTextCursor() throw() +ScCellTextCursor::~ScCellTextCursor() noexcept { } @@ -596,7 +596,7 @@ ScHeaderFooterTextCursor::ScHeaderFooterTextCursor(rtl::Reference<ScHeaderFooter rTextObj( rText ) {} -ScHeaderFooterTextCursor::~ScHeaderFooterTextCursor() throw() {}; +ScHeaderFooterTextCursor::~ScHeaderFooterTextCursor() noexcept {}; // SvxUnoTextCursor methods reimplemented here to return the right objects: @@ -650,7 +650,7 @@ ScDrawTextCursor::ScDrawTextCursor( const uno::Reference<text::XText>& xParent, { } -ScDrawTextCursor::~ScDrawTextCursor() throw() +ScDrawTextCursor::~ScDrawTextCursor() noexcept { } @@ -723,7 +723,7 @@ ScEditEngineTextObj::ScEditEngineTextObj() : { } -ScEditEngineTextObj::~ScEditEngineTextObj() throw() +ScEditEngineTextObj::~ScEditEngineTextObj() noexcept { } diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx index df01cd42855d..9a2932ca1e12 100644 --- a/sc/source/ui/unoobj/viewuno.cxx +++ b/sc/source/ui/unoobj/viewuno.cxx @@ -420,12 +420,12 @@ uno::Any SAL_CALL ScViewPaneObj::queryInterface( const uno::Type& rType ) return aRet; } -void SAL_CALL ScViewPaneObj::acquire() throw() +void SAL_CALL ScViewPaneObj::acquire() noexcept { OWeakObject::acquire(); } -void SAL_CALL ScViewPaneObj::release() throw() +void SAL_CALL ScViewPaneObj::release() noexcept { OWeakObject::release(); } @@ -485,12 +485,12 @@ uno::Any SAL_CALL ScTabViewObj::queryInterface( const uno::Type& rType ) return aRet; } -void SAL_CALL ScTabViewObj::acquire() throw() +void SAL_CALL ScTabViewObj::acquire() noexcept { SfxBaseController::acquire(); } -void SAL_CALL ScTabViewObj::release() throw() +void SAL_CALL ScTabViewObj::release() noexcept { SfxBaseController::release(); } @@ -2162,12 +2162,12 @@ uno::Any ScPreviewObj::queryInterface(const uno::Type& rType) return SfxBaseController::queryInterface(rType); } -void ScPreviewObj::acquire() throw() +void ScPreviewObj::acquire() noexcept { SfxBaseController::acquire(); } -void ScPreviewObj::release() throw() +void ScPreviewObj::release() noexcept { SfxBaseController::release(); } |