summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-30 08:20:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-05-02 17:02:28 +0200
commit10d29c390dd58ed629dd27fe5ed35fae28eceec3 (patch)
tree7476cbb90fff182c5bec0a5a1ef9c41a3ad29f19 /editeng
parenta9243e626193ab4efe3a618413886773336a38e6 (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 'editeng')
-rw-r--r--editeng/inc/unopracc.hxx6
-rw-r--r--editeng/source/misc/SvXMLAutoCorrectImport.cxx4
-rw-r--r--editeng/source/misc/SvXMLAutoCorrectImport.hxx4
-rw-r--r--editeng/source/uno/unofield.cxx14
-rw-r--r--editeng/source/uno/unoipset.cxx4
-rw-r--r--editeng/source/uno/unonrule.cxx4
-rw-r--r--editeng/source/uno/unopracc.cxx6
-rw-r--r--editeng/source/uno/unotext.cxx52
-rw-r--r--editeng/source/uno/unotext2.cxx26
9 files changed, 60 insertions, 60 deletions
diff --git a/editeng/inc/unopracc.hxx b/editeng/inc/unopracc.hxx
index d6b8b8235762..03fd268e7789 100644
--- a/editeng/inc/unopracc.hxx
+++ b/editeng/inc/unopracc.hxx
@@ -35,14 +35,14 @@ class SvxAccessibleTextPropertySet final : public SvxUnoTextRangeBase,
{
public:
SvxAccessibleTextPropertySet(const SvxEditSource*, const SvxItemPropertySet*);
- virtual ~SvxAccessibleTextPropertySet() throw() override;
+ virtual ~SvxAccessibleTextPropertySet() noexcept override;
// XTextRange
virtual css::uno::Reference<css::text::XText> SAL_CALL getText() 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;
// lang::XServiceInfo
virtual OUString SAL_CALL getImplementationName() override;
diff --git a/editeng/source/misc/SvXMLAutoCorrectImport.cxx b/editeng/source/misc/SvXMLAutoCorrectImport.cxx
index b2a9e51d9823..957cb708562c 100644
--- a/editeng/source/misc/SvXMLAutoCorrectImport.cxx
+++ b/editeng/source/misc/SvXMLAutoCorrectImport.cxx
@@ -35,7 +35,7 @@ SvXMLAutoCorrectImport::SvXMLAutoCorrectImport(
{
}
-SvXMLAutoCorrectImport::~SvXMLAutoCorrectImport() throw ()
+SvXMLAutoCorrectImport::~SvXMLAutoCorrectImport() noexcept
{
}
@@ -108,7 +108,7 @@ SvXMLExceptionListImport::SvXMLExceptionListImport(
{
}
-SvXMLExceptionListImport::~SvXMLExceptionListImport() throw ()
+SvXMLExceptionListImport::~SvXMLExceptionListImport() noexcept
{
}
diff --git a/editeng/source/misc/SvXMLAutoCorrectImport.hxx b/editeng/source/misc/SvXMLAutoCorrectImport.hxx
index 364b30a37062..4b4b819c0711 100644
--- a/editeng/source/misc/SvXMLAutoCorrectImport.hxx
+++ b/editeng/source/misc/SvXMLAutoCorrectImport.hxx
@@ -43,7 +43,7 @@ public:
SvxAutoCorrect &rNewAutoCorrect,
const css::uno::Reference < css::embed::XStorage >& rNewStorage);
- virtual ~SvXMLAutoCorrectImport() throw () override;
+ virtual ~SvXMLAutoCorrectImport() noexcept override;
};
class SvXMLWordListContext : public SvXMLImportContext
@@ -84,7 +84,7 @@ public:
const css::uno::Reference< css::uno::XComponentContext > & xContext,
SvStringsISortDtor & rNewList );
- virtual ~SvXMLExceptionListImport() throw () override;
+ virtual ~SvXMLExceptionListImport() noexcept override;
};
class SvXMLExceptionListContext : public SvXMLImportContext
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx
index 389856b4a5ef..c2b0aa5bdd8d 100644
--- a/editeng/source/uno/unofield.cxx
+++ b/editeng/source/uno/unofield.cxx
@@ -229,7 +229,7 @@ static tools::Time setTime( util::DateTime const & rDate )
-const css::uno::Sequence< sal_Int8 > & SvxUnoTextField::getUnoTunnelId() throw()
+const css::uno::Sequence< sal_Int8 > & SvxUnoTextField::getUnoTunnelId() noexcept
{
static const UnoTunnelIdInit theSvxUnoTextFieldUnoTunnelId;
return theSvxUnoTextFieldUnoTunnelId.getSeq();
@@ -244,7 +244,7 @@ sal_Int64 SAL_CALL SvxUnoTextField::getSomething( const css::uno::Sequence< sal_
return 0;
}
-SvxUnoTextField::SvxUnoTextField( sal_Int32 nServiceId ) throw()
+SvxUnoTextField::SvxUnoTextField( sal_Int32 nServiceId ) noexcept
: OComponentHelper( m_aMutex )
, mpPropSet(nullptr)
, mnServiceId(nServiceId)
@@ -310,7 +310,7 @@ SvxUnoTextField::SvxUnoTextField( sal_Int32 nServiceId ) throw()
}
}
-SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > const & xAnchor, const OUString& rPresentation, const SvxFieldData* pData ) throw()
+SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > const & xAnchor, const OUString& rPresentation, const SvxFieldData* pData ) noexcept
: OComponentHelper( m_aMutex )
, mxAnchor( xAnchor )
, mpPropSet(nullptr)
@@ -402,11 +402,11 @@ SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > const & xAn
mpPropSet = ImplGetFieldItemPropertySet(mnServiceId);
}
-SvxUnoTextField::~SvxUnoTextField() throw()
+SvxUnoTextField::~SvxUnoTextField() noexcept
{
}
-std::unique_ptr<SvxFieldData> SvxUnoTextField::CreateFieldData() const throw()
+std::unique_ptr<SvxFieldData> SvxUnoTextField::CreateFieldData() const noexcept
{
std::unique_ptr<SvxFieldData> pData;
@@ -591,12 +591,12 @@ uno::Any SAL_CALL SvxUnoTextField::queryInterface( const uno::Type & rType )
return OComponentHelper::queryInterface(rType);
}
-void SAL_CALL SvxUnoTextField::acquire() throw( )
+void SAL_CALL SvxUnoTextField::acquire() noexcept
{
OComponentHelper::acquire();
}
-void SAL_CALL SvxUnoTextField::release() throw( )
+void SAL_CALL SvxUnoTextField::release() noexcept
{
OComponentHelper::release();
}
diff --git a/editeng/source/uno/unoipset.cxx b/editeng/source/uno/unoipset.cxx
index 9b7e24e18c5f..8a4ad0c29bac 100644
--- a/editeng/source/uno/unoipset.cxx
+++ b/editeng/source/uno/unoipset.cxx
@@ -261,7 +261,7 @@ uno::Reference< beans::XPropertySetInfo > const & SvxItemPropertySet::getProper
/** converts the given any with a metric to 100th/mm if needed */
-void SvxUnoConvertToMM( const MapUnit eSourceMapUnit, uno::Any & rMetric ) throw()
+void SvxUnoConvertToMM( const MapUnit eSourceMapUnit, uno::Any & rMetric ) noexcept
{
// map the metric of the itempool to 100th mm
switch(eSourceMapUnit)
@@ -300,7 +300,7 @@ void SvxUnoConvertToMM( const MapUnit eSourceMapUnit, uno::Any & rMetric ) throw
/** converts the given any with a metric from 100th/mm to the given metric if needed */
-void SvxUnoConvertFromMM( const MapUnit eDestinationMapUnit, uno::Any & rMetric ) throw()
+void SvxUnoConvertFromMM( const MapUnit eDestinationMapUnit, uno::Any & rMetric ) noexcept
{
switch(eDestinationMapUnit)
{
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index 4e81037a36ae..5180f9d60fdf 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -96,7 +96,7 @@ SvxUnoNumberingRules::SvxUnoNumberingRules(const SvxNumRule& rRule)
{
}
-SvxUnoNumberingRules::~SvxUnoNumberingRules() throw()
+SvxUnoNumberingRules::~SvxUnoNumberingRules() noexcept
{
}
@@ -546,7 +546,7 @@ sal_Int16 SvxUnoNumberingRules::Compare( const Any& Any1, const Any& Any2 )
return -1;
}
-Reference< XAnyCompare > SvxCreateNumRuleCompare() throw()
+Reference< XAnyCompare > SvxCreateNumRuleCompare() noexcept
{
return new SvxUnoNumberingRulesCompare;
}
diff --git a/editeng/source/uno/unopracc.cxx b/editeng/source/uno/unopracc.cxx
index 2262bdd9fcab..c36fc152e24b 100644
--- a/editeng/source/uno/unopracc.cxx
+++ b/editeng/source/uno/unopracc.cxx
@@ -33,7 +33,7 @@ SvxAccessibleTextPropertySet::SvxAccessibleTextPropertySet( const SvxEditSource*
{
}
-SvxAccessibleTextPropertySet::~SvxAccessibleTextPropertySet() throw()
+SvxAccessibleTextPropertySet::~SvxAccessibleTextPropertySet() noexcept
{
}
@@ -49,13 +49,13 @@ uno::Any SAL_CALL SvxAccessibleTextPropertySet::queryInterface( const uno::Type
}
void SAL_CALL SvxAccessibleTextPropertySet::acquire()
- throw()
+ noexcept
{
OWeakObject::acquire();
}
void SAL_CALL SvxAccessibleTextPropertySet::release()
- throw()
+ noexcept
{
OWeakObject::release();
}
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index d688e5701503..09351574a13e 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -134,7 +134,7 @@ static const SfxItemPropertySet* ImplGetSvxUnoOutlinerTextCursorSfxPropertySet()
// helper for Item/Property conversion
-void GetSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarder ) throw()
+void GetSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarder ) noexcept
{
DBG_ASSERT( pForwarder, "I need a valid SvxTextForwarder!" );
if( pForwarder )
@@ -147,7 +147,7 @@ void GetSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarder
}
}
-void CheckSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarder ) throw()
+void CheckSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarder ) noexcept
{
DBG_ASSERT( pForwarder, "I need a valid SvxTextForwarder!" );
if( !pForwarder )
@@ -196,7 +196,7 @@ void CheckSelection( struct ESelection& rSel, SvxTextForwarder const * pForwarde
}
}
-static void CheckSelection( struct ESelection& rSel, SvxEditSource *pEdit ) throw()
+static void CheckSelection( struct ESelection& rSel, SvxEditSource *pEdit ) noexcept
{
if (!pEdit)
return;
@@ -259,13 +259,13 @@ SvxUnoTextRangeBase::SvxUnoTextRangeBase(const SvxUnoTextRangeBase& rRange)
mpEditSource->addRange( this );
}
-SvxUnoTextRangeBase::~SvxUnoTextRangeBase() throw()
+SvxUnoTextRangeBase::~SvxUnoTextRangeBase() noexcept
{
if( mpEditSource )
mpEditSource->removeRange( this );
}
-void SvxUnoTextRangeBase::SetEditSource( SvxEditSource* pSource ) throw()
+void SvxUnoTextRangeBase::SetEditSource( SvxEditSource* pSource ) noexcept
{
DBG_ASSERT(pSource,"SvxUnoTextRangeBase: I need a valid SvxEditSource!");
DBG_ASSERT(mpEditSource==nullptr,"SvxUnoTextRangeBase::SetEditSource called while SvxEditSource already set" );
@@ -280,7 +280,7 @@ void SvxUnoTextRangeBase::SetEditSource( SvxEditSource* pSource ) throw()
/** puts a field item with a copy of the given FieldData into the itemset
corresponding with this range */
-void SvxUnoTextRangeBase::attachField( std::unique_ptr<SvxFieldData> pData ) throw()
+void SvxUnoTextRangeBase::attachField( std::unique_ptr<SvxFieldData> pData ) noexcept
{
SolarMutexGuard aGuard;
@@ -292,7 +292,7 @@ void SvxUnoTextRangeBase::attachField( std::unique_ptr<SvxFieldData> pData ) thr
}
}
-void SvxUnoTextRangeBase::SetSelection( const ESelection& rSelection ) throw()
+void SvxUnoTextRangeBase::SetSelection( const ESelection& rSelection ) noexcept
{
SolarMutexGuard aGuard;
@@ -1297,7 +1297,7 @@ uno::Sequence< uno::Any > SAL_CALL SvxUnoTextRangeBase::getPropertyDefaults( con
}
// internal
-void SvxUnoTextRangeBase::CollapseToStart() throw()
+void SvxUnoTextRangeBase::CollapseToStart() noexcept
{
CheckSelection( maSelection, mpEditSource.get() );
@@ -1305,7 +1305,7 @@ void SvxUnoTextRangeBase::CollapseToStart() throw()
maSelection.nEndPos = maSelection.nStartPos;
}
-void SvxUnoTextRangeBase::CollapseToEnd() throw()
+void SvxUnoTextRangeBase::CollapseToEnd() noexcept
{
CheckSelection( maSelection, mpEditSource.get() );
@@ -1313,7 +1313,7 @@ void SvxUnoTextRangeBase::CollapseToEnd() throw()
maSelection.nStartPos = maSelection.nEndPos;
}
-bool SvxUnoTextRangeBase::IsCollapsed() throw()
+bool SvxUnoTextRangeBase::IsCollapsed() noexcept
{
CheckSelection( maSelection, mpEditSource.get() );
@@ -1321,7 +1321,7 @@ bool SvxUnoTextRangeBase::IsCollapsed() throw()
maSelection.nStartPos == maSelection.nEndPos );
}
-bool SvxUnoTextRangeBase::GoLeft(sal_Int16 nCount, bool Expand) throw()
+bool SvxUnoTextRangeBase::GoLeft(sal_Int16 nCount, bool Expand) noexcept
{
CheckSelection( maSelection, mpEditSource.get() );
@@ -1359,7 +1359,7 @@ bool SvxUnoTextRangeBase::GoLeft(sal_Int16 nCount, bool Expand) throw()
return bOk;
}
-bool SvxUnoTextRangeBase::GoRight(sal_Int16 nCount, bool Expand) throw()
+bool SvxUnoTextRangeBase::GoRight(sal_Int16 nCount, bool Expand) noexcept
{
SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : nullptr;
if( pForwarder )
@@ -1398,7 +1398,7 @@ bool SvxUnoTextRangeBase::GoRight(sal_Int16 nCount, bool Expand) throw()
return false;
}
-void SvxUnoTextRangeBase::GotoStart(bool Expand) throw()
+void SvxUnoTextRangeBase::GotoStart(bool Expand) noexcept
{
maSelection.nStartPara = 0;
maSelection.nStartPos = 0;
@@ -1407,7 +1407,7 @@ void SvxUnoTextRangeBase::GotoStart(bool Expand) throw()
CollapseToStart();
}
-void SvxUnoTextRangeBase::GotoEnd(bool Expand) throw()
+void SvxUnoTextRangeBase::GotoEnd(bool Expand) noexcept
{
CheckSelection( maSelection, mpEditSource.get() );
@@ -1500,7 +1500,7 @@ SvxUnoTextRange::SvxUnoTextRange(const SvxUnoTextBase& rParent, bool bPortion /*
xParentText = static_cast<text::XText*>(const_cast<SvxUnoTextBase *>(&rParent));
}
-SvxUnoTextRange::~SvxUnoTextRange() throw()
+SvxUnoTextRange::~SvxUnoTextRange() noexcept
{
}
@@ -1528,13 +1528,13 @@ uno::Any SAL_CALL SvxUnoTextRange::queryInterface( const uno::Type & rType )
}
void SAL_CALL SvxUnoTextRange::acquire()
- throw( )
+ noexcept
{
OWeakAggObject::acquire();
}
void SAL_CALL SvxUnoTextRange::release()
- throw( )
+ noexcept
{
OWeakAggObject::release();
}
@@ -1618,7 +1618,7 @@ SvxUnoTextBase::SvxUnoTextBase(const SvxUnoTextBase& rText)
xParentText = rText.xParentText;
}
-SvxUnoTextBase::~SvxUnoTextBase() throw()
+SvxUnoTextBase::~SvxUnoTextBase() noexcept
{
}
@@ -2161,7 +2161,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextBase::getSupportedServiceNames_Stat
std::initializer_list<std::u16string_view>{ u"com.sun.star.text.Text" });
}
-const uno::Sequence< sal_Int8 > & SvxUnoTextBase::getUnoTunnelId() throw()
+const uno::Sequence< sal_Int8 > & SvxUnoTextBase::getUnoTunnelId() noexcept
{
static const UnoTunnelIdInit theSvxUnoTextBaseUnoTunnelId;
return theSvxUnoTextBaseUnoTunnelId.getSeq();
@@ -2179,23 +2179,23 @@ sal_Int64 SAL_CALL SvxUnoTextBase::getSomething( const uno::Sequence< sal_Int8 >
}
}
-SvxUnoText::SvxUnoText( const SvxItemPropertySet* _pSet ) throw()
+SvxUnoText::SvxUnoText( const SvxItemPropertySet* _pSet ) noexcept
: SvxUnoTextBase( _pSet )
{
}
-SvxUnoText::SvxUnoText( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, uno::Reference < text::XText > const & xParent ) throw()
+SvxUnoText::SvxUnoText( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, uno::Reference < text::XText > const & xParent ) noexcept
: SvxUnoTextBase( pSource, _pSet, xParent )
{
}
-SvxUnoText::SvxUnoText( const SvxUnoText& rText ) throw()
+SvxUnoText::SvxUnoText( const SvxUnoText& rText ) noexcept
: SvxUnoTextBase( rText )
, cppu::OWeakAggObject()
{
}
-SvxUnoText::~SvxUnoText() throw()
+SvxUnoText::~SvxUnoText() noexcept
{
}
@@ -2214,12 +2214,12 @@ uno::Any SAL_CALL SvxUnoText::queryInterface( const uno::Type & rType )
return OWeakAggObject::queryInterface( rType );
}
-void SAL_CALL SvxUnoText::acquire() throw( )
+void SAL_CALL SvxUnoText::acquire() noexcept
{
OWeakAggObject::acquire();
}
-void SAL_CALL SvxUnoText::release() throw( )
+void SAL_CALL SvxUnoText::release() noexcept
{
OWeakAggObject::release();
}
@@ -2235,7 +2235,7 @@ uno::Sequence< sal_Int8 > SAL_CALL SvxUnoText::getImplementationId( )
return css::uno::Sequence<sal_Int8>();
}
-const uno::Sequence< sal_Int8 > & SvxUnoText::getUnoTunnelId() throw()
+const uno::Sequence< sal_Int8 > & SvxUnoText::getUnoTunnelId() noexcept
{
static const UnoTunnelIdInit theSvxUnoTextUnoTunnelId;
return theSvxUnoTextUnoTunnelId.getSeq();
diff --git a/editeng/source/uno/unotext2.cxx b/editeng/source/uno/unotext2.cxx
index d88bb55daa9d..f7a2d462e3b3 100644
--- a/editeng/source/uno/unotext2.cxx
+++ b/editeng/source/uno/unotext2.cxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star;
// SvxUnoTextContentEnumeration
-SvxUnoTextContentEnumeration::SvxUnoTextContentEnumeration( const SvxUnoTextBase& rText, const ESelection& rSel ) throw()
+SvxUnoTextContentEnumeration::SvxUnoTextContentEnumeration( const SvxUnoTextBase& rText, const ESelection& rSel ) noexcept
{
mxParentText = const_cast<SvxUnoTextBase*>(&rText);
if( rText.GetEditSource() )
@@ -86,7 +86,7 @@ SvxUnoTextContentEnumeration::SvxUnoTextContentEnumeration( const SvxUnoTextBase
}
}
-SvxUnoTextContentEnumeration::~SvxUnoTextContentEnumeration() throw()
+SvxUnoTextContentEnumeration::~SvxUnoTextContentEnumeration() noexcept
{
}
@@ -115,7 +115,7 @@ uno::Any SvxUnoTextContentEnumeration::nextElement()
-SvxUnoTextContent::SvxUnoTextContent( const SvxUnoTextBase& rText, sal_Int32 nPara ) throw()
+SvxUnoTextContent::SvxUnoTextContent( const SvxUnoTextBase& rText, sal_Int32 nPara ) noexcept
: SvxUnoTextRangeBase(rText)
, mnParagraph(nPara)
, mrParentText(rText)
@@ -125,7 +125,7 @@ SvxUnoTextContent::SvxUnoTextContent( const SvxUnoTextBase& rText, sal_Int32 nPa
mxParentText = const_cast<SvxUnoTextBase*>(&rText);
}
-SvxUnoTextContent::SvxUnoTextContent( const SvxUnoTextContent& rContent ) throw()
+SvxUnoTextContent::SvxUnoTextContent( const SvxUnoTextContent& rContent ) noexcept
: SvxUnoTextRangeBase(rContent)
, text::XTextContent()
, container::XEnumerationAccess()
@@ -140,7 +140,7 @@ SvxUnoTextContent::SvxUnoTextContent( const SvxUnoTextContent& rContent ) throw(
SetSelection( rContent.GetSelection() );
}
-SvxUnoTextContent::~SvxUnoTextContent() throw()
+SvxUnoTextContent::~SvxUnoTextContent() noexcept
{
}
@@ -169,12 +169,12 @@ uno::Any SAL_CALL SvxUnoTextContent::queryInterface( const uno::Type & rType )
return OWeakAggObject::queryInterface(rType);
}
-void SAL_CALL SvxUnoTextContent::acquire() throw( )
+void SAL_CALL SvxUnoTextContent::acquire() noexcept
{
OWeakAggObject::acquire();
}
-void SAL_CALL SvxUnoTextContent::release() throw( )
+void SAL_CALL SvxUnoTextContent::release() noexcept
{
OWeakAggObject::release();
}
@@ -422,7 +422,7 @@ SvxUnoTextRangeEnumeration::SvxUnoTextRangeEnumeration(const SvxUnoTextBase& rPa
}
}
-SvxUnoTextRangeEnumeration::~SvxUnoTextRangeEnumeration() throw()
+SvxUnoTextRangeEnumeration::~SvxUnoTextRangeEnumeration() noexcept
{
}
@@ -447,13 +447,13 @@ uno::Any SAL_CALL SvxUnoTextRangeEnumeration::nextElement()
return uno::makeAny( xRange );
}
-SvxUnoTextCursor::SvxUnoTextCursor( const SvxUnoTextBase& rText ) throw()
+SvxUnoTextCursor::SvxUnoTextCursor( const SvxUnoTextBase& rText ) noexcept
: SvxUnoTextRangeBase(rText),
mxParentText( const_cast<SvxUnoTextBase*>(&rText) )
{
}
-SvxUnoTextCursor::SvxUnoTextCursor( const SvxUnoTextCursor& rCursor ) throw()
+SvxUnoTextCursor::SvxUnoTextCursor( const SvxUnoTextCursor& rCursor ) noexcept
: SvxUnoTextRangeBase(rCursor)
, text::XTextCursor()
, lang::XTypeProvider()
@@ -462,7 +462,7 @@ SvxUnoTextCursor::SvxUnoTextCursor( const SvxUnoTextCursor& rCursor ) throw()
{
}
-SvxUnoTextCursor::~SvxUnoTextCursor() throw()
+SvxUnoTextCursor::~SvxUnoTextCursor() noexcept
{
}
@@ -491,12 +491,12 @@ uno::Any SAL_CALL SvxUnoTextCursor::queryInterface( const uno::Type & rType )
return OWeakAggObject::queryInterface(rType);
}
-void SAL_CALL SvxUnoTextCursor::acquire() throw ( )
+void SAL_CALL SvxUnoTextCursor::acquire() noexcept
{
OWeakAggObject::acquire();
}
-void SAL_CALL SvxUnoTextCursor::release() throw ( )
+void SAL_CALL SvxUnoTextCursor::release() noexcept
{
OWeakAggObject::release();
}