summaryrefslogtreecommitdiff
path: root/svtools/source/uno/unoevent.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /svtools/source/uno/unoevent.cxx
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools/source/uno/unoevent.cxx')
-rw-r--r--svtools/source/uno/unoevent.cxx36
1 files changed, 0 insertions, 36 deletions
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx
index e8f6cbd5cdcf..6a6688574501 100644
--- a/svtools/source/uno/unoevent.cxx
+++ b/svtools/source/uno/unoevent.cxx
@@ -138,7 +138,6 @@ void getAnyFromMacro(Any& rAny, const SvxMacro& rMacro)
void getMacroFromAny(
SvxMacro& rMacro,
const Any& rAny)
- throw ( IllegalArgumentException )
{
// get sequence
Sequence<PropertyValue> aSequence;
@@ -250,11 +249,6 @@ SvBaseEventDescriptor::~SvBaseEventDescriptor()
void SvBaseEventDescriptor::replaceByName(
const OUString& rName,
const Any& rElement )
- throw(
- IllegalArgumentException,
- NoSuchElementException,
- WrappedTargetException,
- RuntimeException, std::exception)
{
sal_uInt16 nMacroID = getMacroID(rName);
@@ -276,10 +270,6 @@ void SvBaseEventDescriptor::replaceByName(
Any SvBaseEventDescriptor::getByName(
const OUString& rName )
- throw(
- NoSuchElementException,
- WrappedTargetException,
- RuntimeException, std::exception)
{
sal_uInt16 nMacroID = getMacroID(rName);
@@ -296,7 +286,6 @@ Any SvBaseEventDescriptor::getByName(
}
Sequence<OUString> SvBaseEventDescriptor::getElementNames()
- throw(RuntimeException, std::exception)
{
// create and fill sequence
Sequence<OUString> aSequence(mnMacroItems);
@@ -310,32 +299,27 @@ Sequence<OUString> SvBaseEventDescriptor::getElementNames()
sal_Bool SvBaseEventDescriptor::hasByName(
const OUString& rName )
- throw(RuntimeException, std::exception)
{
sal_uInt16 nMacroID = getMacroID(rName);
return (nMacroID != 0);
}
Type SvBaseEventDescriptor::getElementType()
- throw(RuntimeException, std::exception)
{
return cppu::UnoType<Sequence<PropertyValue>>::get();
}
sal_Bool SvBaseEventDescriptor::hasElements()
- throw(RuntimeException, std::exception)
{
return mnMacroItems != 0;
}
sal_Bool SvBaseEventDescriptor::supportsService(const OUString& rServiceName)
- throw(RuntimeException, std::exception)
{
return cppu::supportsService(this, rServiceName);
}
Sequence<OUString> SvBaseEventDescriptor::getSupportedServiceNames()
- throw(RuntimeException, std::exception)
{
Sequence<OUString> aSequence { sAPI_ServiceName };
@@ -379,11 +363,6 @@ SvEventDescriptor::~SvEventDescriptor()
void SvEventDescriptor::replaceByName(
const sal_uInt16 nEvent,
const SvxMacro& rMacro)
- throw(
- IllegalArgumentException,
- NoSuchElementException,
- WrappedTargetException,
- RuntimeException)
{
SvxMacroItem aItem(getMacroItemWhich());
aItem.SetMacroTable(getMacroItem().GetMacroTable());
@@ -394,10 +373,6 @@ void SvEventDescriptor::replaceByName(
void SvEventDescriptor::getByName(
SvxMacro& rMacro,
const sal_uInt16 nEvent )
- throw(
- NoSuchElementException,
- WrappedTargetException,
- RuntimeException)
{
const SvxMacroItem& rItem = getMacroItem();
if( rItem.HasMacro( nEvent ) )
@@ -450,7 +425,6 @@ sal_Int16 SvDetachedEventDescriptor::getIndex(const sal_uInt16 nID) const
}
OUString SvDetachedEventDescriptor::getImplementationName()
- throw( css::uno::RuntimeException, std::exception )
{
return sImplName;
}
@@ -459,11 +433,6 @@ OUString SvDetachedEventDescriptor::getImplementationName()
void SvDetachedEventDescriptor::replaceByName(
const sal_uInt16 nEvent,
const SvxMacro& rMacro)
- throw(
- IllegalArgumentException,
- NoSuchElementException,
- WrappedTargetException,
- RuntimeException)
{
sal_Int16 nIndex = getIndex(nEvent);
if (-1 == nIndex)
@@ -477,10 +446,6 @@ void SvDetachedEventDescriptor::replaceByName(
void SvDetachedEventDescriptor::getByName(
SvxMacro& rMacro,
const sal_uInt16 nEvent )
- throw(
- NoSuchElementException,
- WrappedTargetException,
- RuntimeException)
{
sal_Int16 nIndex = getIndex(nEvent);
if (-1 == nIndex )
@@ -492,7 +457,6 @@ void SvDetachedEventDescriptor::getByName(
bool SvDetachedEventDescriptor::hasById(
const sal_uInt16 nEvent ) const /// item ID of event
- throw(IllegalArgumentException)
{
sal_Int16 nIndex = getIndex(nEvent);
if (-1 == nIndex)