summaryrefslogtreecommitdiff
path: root/UnoControls/source/controls/framecontrol.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 /UnoControls/source/controls/framecontrol.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 'UnoControls/source/controls/framecontrol.cxx')
-rw-r--r--UnoControls/source/controls/framecontrol.cxx33
1 files changed, 15 insertions, 18 deletions
diff --git a/UnoControls/source/controls/framecontrol.cxx b/UnoControls/source/controls/framecontrol.cxx
index 091a86dec91d..ed9b15e2870a 100644
--- a/UnoControls/source/controls/framecontrol.cxx
+++ b/UnoControls/source/controls/framecontrol.cxx
@@ -60,7 +60,7 @@ FrameControl::~FrameControl()
// XInterface
-Any SAL_CALL FrameControl::queryInterface( const Type& rType ) throw( RuntimeException, std::exception )
+Any SAL_CALL FrameControl::queryInterface( const Type& rType )
{
// Attention:
// Don't use mutex or guard in this method!!! Is a method of XInterface.
@@ -105,7 +105,7 @@ void SAL_CALL FrameControl::release() throw()
// XTypeProvider
-Sequence< Type > SAL_CALL FrameControl::getTypes() throw( RuntimeException, std::exception )
+Sequence< Type > SAL_CALL FrameControl::getTypes()
{
// Optimize this method !
// We initialize a static variable only one time. And we don't must use a mutex at every call!
@@ -136,7 +136,7 @@ Sequence< Type > SAL_CALL FrameControl::getTypes() throw( RuntimeException, std:
// XAggregation
-Any SAL_CALL FrameControl::queryAggregation( const Type& aType ) throw( RuntimeException, std::exception )
+Any SAL_CALL FrameControl::queryAggregation( const Type& aType )
{
// Ask for my own supported interfaces ...
// Attention: XTypeProvider and XInterface are supported by OComponentHelper!
@@ -161,13 +161,11 @@ Any SAL_CALL FrameControl::queryAggregation( const Type& aType ) throw( RuntimeE
}
OUString FrameControl::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return impl_getStaticImplementationName();
}
css::uno::Sequence<OUString> FrameControl::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
return impl_getStaticSupportedServiceNames();
}
@@ -175,7 +173,7 @@ css::uno::Sequence<OUString> FrameControl::getSupportedServiceNames()
// XControl
void SAL_CALL FrameControl::createPeer( const Reference< XToolkit >& xToolkit ,
- const Reference< XWindowPeer >& xParentPeer ) throw( RuntimeException, std::exception )
+ const Reference< XWindowPeer >& xParentPeer )
{
BaseControl::createPeer( xToolkit, xParentPeer );
if ( impl_getPeerWindow().is() )
@@ -189,7 +187,7 @@ void SAL_CALL FrameControl::createPeer( const Reference< XToolkit >& xToo
// XControl
-sal_Bool SAL_CALL FrameControl::setModel( const Reference< XControlModel >& /*xModel*/ ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL FrameControl::setModel( const Reference< XControlModel >& /*xModel*/ )
{
// We have no model.
return false;
@@ -197,7 +195,7 @@ sal_Bool SAL_CALL FrameControl::setModel( const Reference< XControlModel >& /*xM
// XControl
-Reference< XControlModel > SAL_CALL FrameControl::getModel() throw( RuntimeException, std::exception )
+Reference< XControlModel > SAL_CALL FrameControl::getModel()
{
// We have no model.
return Reference< XControlModel >();
@@ -205,7 +203,7 @@ Reference< XControlModel > SAL_CALL FrameControl::getModel() throw( RuntimeExcep
// XControl
-void SAL_CALL FrameControl::dispose() throw( RuntimeException, std::exception )
+void SAL_CALL FrameControl::dispose()
{
impl_deleteFrame();
BaseControl::dispose();
@@ -213,7 +211,7 @@ void SAL_CALL FrameControl::dispose() throw( RuntimeException, std::exception )
// XView
-sal_Bool SAL_CALL FrameControl::setGraphics( const Reference< XGraphics >& /*xDevice*/ ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL FrameControl::setGraphics( const Reference< XGraphics >& /*xDevice*/ )
{
// it is not possible to print this control
return false;
@@ -221,7 +219,7 @@ sal_Bool SAL_CALL FrameControl::setGraphics( const Reference< XGraphics >& /*xDe
// XView
-Reference< XGraphics > SAL_CALL FrameControl::getGraphics() throw( RuntimeException, std::exception )
+Reference< XGraphics > SAL_CALL FrameControl::getGraphics()
{
// when it's not possible to set graphics ! then it's possible to return null
return Reference< XGraphics >();
@@ -229,7 +227,7 @@ Reference< XGraphics > SAL_CALL FrameControl::getGraphics() throw( RuntimeExcept
// XConnectionPointContainer
-Sequence< Type > SAL_CALL FrameControl::getConnectionPointTypes() throw( RuntimeException, std::exception )
+Sequence< Type > SAL_CALL FrameControl::getConnectionPointTypes()
{
// Forwarded to helper class
return m_aConnectionPointContainer->getConnectionPointTypes();
@@ -237,7 +235,7 @@ Sequence< Type > SAL_CALL FrameControl::getConnectionPointTypes() throw( Runtime
// XConnectionPointContainer
-Reference< XConnectionPoint > SAL_CALL FrameControl::queryConnectionPoint( const Type& aType ) throw( RuntimeException, std::exception )
+Reference< XConnectionPoint > SAL_CALL FrameControl::queryConnectionPoint( const Type& aType )
{
// Forwarded to helper class
return m_aConnectionPointContainer->queryConnectionPoint( aType );
@@ -246,7 +244,7 @@ Reference< XConnectionPoint > SAL_CALL FrameControl::queryConnectionPoint( const
// XConnectionPointContainer
void SAL_CALL FrameControl::advise( const Type& aType ,
- const Reference< XInterface >& xListener ) throw( RuntimeException, std::exception )
+ const Reference< XInterface >& xListener )
{
// Forwarded to helper class
m_aConnectionPointContainer->advise( aType, xListener );
@@ -255,7 +253,7 @@ void SAL_CALL FrameControl::advise( const Type& aType
// XConnectionPointContainer
void SAL_CALL FrameControl::unadvise( const Type& aType ,
- const Reference< XInterface >& xListener ) throw( RuntimeException, std::exception )
+ const Reference< XInterface >& xListener )
{
// Forwarded to helper class
m_aConnectionPointContainer->unadvise( aType, xListener );
@@ -281,7 +279,7 @@ const OUString FrameControl::impl_getStaticImplementationName()
sal_Bool FrameControl::convertFastPropertyValue( Any& rConvertedValue ,
Any& rOldValue ,
sal_Int32 nHandle ,
- const Any& rValue ) throw( IllegalArgumentException )
+ const Any& rValue )
{
bool bReturn = false;
switch (nHandle)
@@ -309,7 +307,6 @@ sal_Bool FrameControl::convertFastPropertyValue( Any& rConvertedVa
void FrameControl::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle ,
const Any& rValue )
- throw ( css::uno::Exception, std::exception )
{
// this method only set the value
MutexGuard aGuard (m_aMutex);
@@ -374,7 +371,7 @@ IPropertyArrayHelper& FrameControl::getInfoHelper()
// OPropertySetHelper
-Reference< XPropertySetInfo > SAL_CALL FrameControl::getPropertySetInfo() throw( RuntimeException, std::exception )
+Reference< XPropertySetInfo > SAL_CALL FrameControl::getPropertySetInfo()
{
// Optimize this method !
// We initialize a static variable only one time. And we don't must use a mutex at every call!