summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-22 10:50:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-25 21:55:39 +0100
commit76e950bfafd8b44ee47d7a9573df1571652c52e1 (patch)
tree35c6ea2a240ba08ccf2c4faaaaed18c088f75763 /editeng
parent93c96ec5018f723748557975435eb6c27135b60c (diff)
various coverity exception warnings
Change-Id: I7b3588ad42e17f2f363b6a247e318f23c95e578e Reviewed-on: https://gerrit.libreoffice.org/46961 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/uno/unonrule.cxx6
-rw-r--r--editeng/source/uno/unotext.cxx20
-rw-r--r--editeng/source/uno/unotext2.cxx2
3 files changed, 14 insertions, 14 deletions
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index dfdc218ad1fc..9c0dca69df4c 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -85,7 +85,7 @@ unsigned short ConvertUnoAdjust( SvxAdjust eAdjust )
UNO3_GETIMPLEMENTATION_IMPL( SvxUnoNumberingRules );
-SvxUnoNumberingRules::SvxUnoNumberingRules( const SvxNumRule& rRule ) throw()
+SvxUnoNumberingRules::SvxUnoNumberingRules(const SvxNumRule& rRule)
: maRule( rRule )
{
}
@@ -473,7 +473,7 @@ const SvxNumRule& SvxGetNumRule( Reference< XIndexReplace > const & xRule )
return pRule->getNumRule();
}
-css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule( const SvxNumRule* pRule ) throw()
+css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule(const SvxNumRule* pRule)
{
DBG_ASSERT( pRule, "No default SvxNumRule!" );
if( pRule )
@@ -539,7 +539,7 @@ Reference< XAnyCompare > SvxCreateNumRuleCompare() throw()
return new SvxUnoNumberingRulesCompare;
}
-css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule() throw()
+css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule()
{
SvxNumRule aTempRule( SvxNumRuleFlags::NONE, 10, false );
return SvxCreateNumRule( &aTempRule );
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index aced15ee0f53..75b9d339c7cf 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -207,12 +207,12 @@ void CheckSelection( struct ESelection& rSel, SvxEditSource *pEdit ) throw()
UNO3_GETIMPLEMENTATION_IMPL( SvxUnoTextRangeBase );
-SvxUnoTextRangeBase::SvxUnoTextRangeBase( const SvxItemPropertySet* _pSet ) throw()
-: mpEditSource(nullptr) , mpPropSet(_pSet)
+SvxUnoTextRangeBase::SvxUnoTextRangeBase(const SvxItemPropertySet* _pSet)
+ : mpEditSource(nullptr) , mpPropSet(_pSet)
{
}
-SvxUnoTextRangeBase::SvxUnoTextRangeBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet ) throw()
+SvxUnoTextRangeBase::SvxUnoTextRangeBase(const SvxEditSource* pSource, const SvxItemPropertySet* _pSet)
: mpPropSet(_pSet)
{
SolarMutexGuard aGuard;
@@ -230,7 +230,7 @@ SvxUnoTextRangeBase::SvxUnoTextRangeBase( const SvxEditSource* pSource, const Sv
}
}
-SvxUnoTextRangeBase::SvxUnoTextRangeBase( const SvxUnoTextRangeBase& rRange ) throw()
+SvxUnoTextRangeBase::SvxUnoTextRangeBase(const SvxUnoTextRangeBase& rRange)
: text::XTextRange()
, beans::XPropertySet()
, beans::XMultiPropertySet()
@@ -1510,7 +1510,7 @@ sal_Int16 SAL_CALL SvxUnoTextRangeBase::compareRegionEnds( const uno::Reference<
}
}
-SvxUnoTextRange::SvxUnoTextRange( const SvxUnoTextBase& rParent, bool bPortion /* = false */ ) throw()
+SvxUnoTextRange::SvxUnoTextRange(const SvxUnoTextBase& rParent, bool bPortion /* = false */)
:SvxUnoTextRangeBase( rParent.GetEditSource(), bPortion ? ImplGetSvxTextPortionSvxPropertySet() : rParent.getPropertySet() ),
mbPortion( bPortion )
{
@@ -1611,13 +1611,13 @@ OUString SAL_CALL SvxUnoTextRange::getImplementationName()
// class SvxUnoText
-SvxUnoTextBase::SvxUnoTextBase( const SvxItemPropertySet* _pSet ) throw()
-: SvxUnoTextRangeBase( _pSet )
+SvxUnoTextBase::SvxUnoTextBase(const SvxItemPropertySet* _pSet)
+ : SvxUnoTextRangeBase(_pSet)
{
}
-SvxUnoTextBase::SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, uno::Reference < text::XText > const & xParent ) throw()
-: SvxUnoTextRangeBase( pSource, _pSet )
+SvxUnoTextBase::SvxUnoTextBase(const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, uno::Reference < text::XText > const & xParent)
+ : SvxUnoTextRangeBase(pSource, _pSet)
{
xParentText = xParent;
ESelection aSelection;
@@ -1625,7 +1625,7 @@ SvxUnoTextBase::SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPrope
SetSelection( aSelection );
}
-SvxUnoTextBase::SvxUnoTextBase( const SvxUnoTextBase& rText ) throw()
+SvxUnoTextBase::SvxUnoTextBase(const SvxUnoTextBase& rText)
: SvxUnoTextRangeBase( rText )
, text::XTextAppend()
, text::XTextCopy()
diff --git a/editeng/source/uno/unotext2.cxx b/editeng/source/uno/unotext2.cxx
index 857745bdce56..8e059941c0d2 100644
--- a/editeng/source/uno/unotext2.cxx
+++ b/editeng/source/uno/unotext2.cxx
@@ -375,7 +375,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoTextContent::getSupportedServiceNames()
// class SvxUnoTextRangeEnumeration
-SvxUnoTextRangeEnumeration::SvxUnoTextRangeEnumeration( const SvxUnoTextBase& rText, sal_Int32 nPara, const ESelection& rSel ) throw()
+SvxUnoTextRangeEnumeration::SvxUnoTextRangeEnumeration(const SvxUnoTextBase& rText, sal_Int32 nPara, const ESelection& rSel)
: mxParentText( const_cast<SvxUnoTextBase*>(&rText) ),
mrParentText( rText ),
mnParagraph( nPara ),