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>
This commit is contained in:
@@ -64,19 +64,19 @@ public:
|
||||
const OWeakConnectionPoint& operator=(const OWeakConnectionPoint&) = delete;
|
||||
|
||||
// XInterface
|
||||
Any SAL_CALL queryInterface( const Type & rType ) throw(css::uno::RuntimeException, std::exception) override;
|
||||
Any SAL_CALL queryInterface( const Type & rType ) override;
|
||||
void SAL_CALL acquire() throw() override;
|
||||
void SAL_CALL release() throw() override;
|
||||
|
||||
// XAdapter
|
||||
css::uno::Reference< css::uno::XInterface > SAL_CALL queryAdapted() throw(css::uno::RuntimeException, std::exception) override;
|
||||
void SAL_CALL addReference( const css::uno::Reference< css::uno::XReference >& xRef ) throw(css::uno::RuntimeException, std::exception) override;
|
||||
void SAL_CALL removeReference( const css::uno::Reference< css::uno::XReference >& xRef ) throw(css::uno::RuntimeException, std::exception) override;
|
||||
css::uno::Reference< css::uno::XInterface > SAL_CALL queryAdapted() override;
|
||||
void SAL_CALL addReference( const css::uno::Reference< css::uno::XReference >& xRef ) override;
|
||||
void SAL_CALL removeReference( const css::uno::Reference< css::uno::XReference >& xRef ) override;
|
||||
|
||||
/// Called from the weak object if the reference count goes to zero.
|
||||
///
|
||||
/// @throws css::uno::RuntimeException
|
||||
void SAL_CALL dispose() throw(css::uno::RuntimeException);
|
||||
void SAL_CALL dispose();
|
||||
|
||||
private:
|
||||
virtual ~OWeakConnectionPoint() {}
|
||||
@@ -91,7 +91,6 @@ private:
|
||||
|
||||
// XInterface
|
||||
Any SAL_CALL OWeakConnectionPoint::queryInterface( const Type & rType )
|
||||
throw(css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
return ::cppu::queryInterface(
|
||||
rType, static_cast< XAdapter * >( this ), static_cast< XInterface * >( this ) );
|
||||
@@ -110,7 +109,7 @@ void SAL_CALL OWeakConnectionPoint::release() throw()
|
||||
delete this;
|
||||
}
|
||||
|
||||
void SAL_CALL OWeakConnectionPoint::dispose() throw(css::uno::RuntimeException)
|
||||
void SAL_CALL OWeakConnectionPoint::dispose()
|
||||
{
|
||||
std::vector<Reference<XReference>> aCopy;
|
||||
{ // only hold the mutex while we access the field
|
||||
@@ -142,7 +141,7 @@ void SAL_CALL OWeakConnectionPoint::dispose() throw(css::uno::RuntimeException)
|
||||
}
|
||||
|
||||
// XInterface
|
||||
Reference< XInterface > SAL_CALL OWeakConnectionPoint::queryAdapted() throw(css::uno::RuntimeException, std::exception)
|
||||
Reference< XInterface > SAL_CALL OWeakConnectionPoint::queryAdapted()
|
||||
{
|
||||
Reference< XInterface > ret;
|
||||
|
||||
@@ -171,7 +170,6 @@ Reference< XInterface > SAL_CALL OWeakConnectionPoint::queryAdapted() throw(css:
|
||||
|
||||
// XInterface
|
||||
void SAL_CALL OWeakConnectionPoint::addReference(const Reference< XReference >& rRef)
|
||||
throw(css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
MutexGuard aGuard(getWeakMutex());
|
||||
m_aReferences.push_back( rRef );
|
||||
@@ -179,7 +177,6 @@ void SAL_CALL OWeakConnectionPoint::addReference(const Reference< XReference >&
|
||||
|
||||
// XInterface
|
||||
void SAL_CALL OWeakConnectionPoint::removeReference(const Reference< XReference >& rRef)
|
||||
throw(css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
MutexGuard aGuard(getWeakMutex());
|
||||
// Search from end because the thing that last added a ref is most likely to be the
|
||||
@@ -211,7 +208,7 @@ OWeakObject::OWeakObject()
|
||||
#endif
|
||||
|
||||
// XInterface
|
||||
Any SAL_CALL OWeakObject::queryInterface( const Type & rType ) throw(css::uno::RuntimeException, std::exception)
|
||||
Any SAL_CALL OWeakObject::queryInterface( const Type & rType )
|
||||
{
|
||||
return ::cppu::queryInterface(
|
||||
rType,
|
||||
@@ -261,7 +258,6 @@ OWeakObject::~OWeakObject()
|
||||
|
||||
// XWeak
|
||||
Reference< XAdapter > SAL_CALL OWeakObject::queryAdapter()
|
||||
throw (css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
if (!m_pWeakConnectionPoint)
|
||||
{
|
||||
@@ -306,14 +302,14 @@ void OWeakAggObject::release() throw()
|
||||
}
|
||||
|
||||
// XInterface
|
||||
Any OWeakAggObject::queryInterface( const Type & rType ) throw(css::uno::RuntimeException, std::exception)
|
||||
Any OWeakAggObject::queryInterface( const Type & rType )
|
||||
{
|
||||
Reference< XInterface > x( xDelegator ); // harden ref
|
||||
return (x.is() ? x->queryInterface( rType ) : queryAggregation( rType ));
|
||||
}
|
||||
|
||||
// XAggregation
|
||||
Any OWeakAggObject::queryAggregation( const Type & rType ) throw(css::uno::RuntimeException, std::exception)
|
||||
Any OWeakAggObject::queryAggregation( const Type & rType )
|
||||
{
|
||||
return ::cppu::queryInterface(
|
||||
rType,
|
||||
@@ -323,7 +319,7 @@ Any OWeakAggObject::queryAggregation( const Type & rType ) throw(css::uno::Runti
|
||||
}
|
||||
|
||||
// XAggregation
|
||||
void OWeakAggObject::setDelegator( const Reference<XInterface > & rDelegator ) throw(css::uno::RuntimeException, std::exception)
|
||||
void OWeakAggObject::setDelegator( const Reference<XInterface > & rDelegator )
|
||||
{
|
||||
xDelegator = rDelegator;
|
||||
}
|
||||
@@ -357,12 +353,12 @@ public:
|
||||
const OWeakRefListener& operator=(const OWeakRefListener&) = delete;
|
||||
|
||||
// XInterface
|
||||
Any SAL_CALL queryInterface( const Type & rType ) throw(RuntimeException, std::exception) override;
|
||||
Any SAL_CALL queryInterface( const Type & rType ) override;
|
||||
void SAL_CALL acquire() throw() override;
|
||||
void SAL_CALL release() throw() override;
|
||||
|
||||
// XReference
|
||||
void SAL_CALL dispose() throw(css::uno::RuntimeException, std::exception) override;
|
||||
void SAL_CALL dispose() override;
|
||||
|
||||
/// The reference counter.
|
||||
oslInterlockedCount m_aRefCount;
|
||||
@@ -405,7 +401,7 @@ OWeakRefListener::~OWeakRefListener()
|
||||
}
|
||||
|
||||
// XInterface
|
||||
Any SAL_CALL OWeakRefListener::queryInterface( const Type & rType ) throw(RuntimeException, std::exception)
|
||||
Any SAL_CALL OWeakRefListener::queryInterface( const Type & rType )
|
||||
{
|
||||
return ::cppu::queryInterface(
|
||||
rType, static_cast< XReference * >( this ), static_cast< XInterface * >( this ) );
|
||||
@@ -425,7 +421,6 @@ void SAL_CALL OWeakRefListener::release() throw()
|
||||
}
|
||||
|
||||
void SAL_CALL OWeakRefListener::dispose()
|
||||
throw(css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
Reference< XAdapter > xAdp;
|
||||
{
|
||||
|
Reference in New Issue
Block a user