summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/tabpagemodel.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 /toolkit/source/controls/tabpagemodel.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 'toolkit/source/controls/tabpagemodel.cxx')
-rw-r--r--toolkit/source/controls/tabpagemodel.cxx22
1 files changed, 7 insertions, 15 deletions
diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx
index 488d72a325ed..b8f67f88f86c 100644
--- a/toolkit/source/controls/tabpagemodel.cxx
+++ b/toolkit/source/controls/tabpagemodel.cxx
@@ -59,12 +59,12 @@ UnoControlTabPageModel::UnoControlTabPageModel( Reference< XComponentContext > c
ImplRegisterProperty( BASEPROPERTY_HELPURL );
}
-OUString SAL_CALL UnoControlTabPageModel::getImplementationName() throw(css::uno::RuntimeException, std::exception)
+OUString SAL_CALL UnoControlTabPageModel::getImplementationName()
{
return OUString("stardiv.Toolkit.UnoControlTabPageModel");
}
-css::uno::Sequence< OUString > SAL_CALL UnoControlTabPageModel::getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception)
+css::uno::Sequence< OUString > SAL_CALL UnoControlTabPageModel::getSupportedServiceNames()
{
css::uno::Sequence< OUString > aNames = ControlModelContainerBase::getSupportedServiceNames( );
aNames.realloc( aNames.getLength() + 1 );
@@ -72,7 +72,7 @@ css::uno::Sequence< OUString > SAL_CALL UnoControlTabPageModel::getSupportedServ
return aNames;
}
-OUString UnoControlTabPageModel::getServiceName( ) throw(RuntimeException, std::exception)
+OUString UnoControlTabPageModel::getServiceName( )
{
return OUString("com.sun.star.awt.tab.UnoControlTabPageModel");
}
@@ -104,14 +104,13 @@ Any UnoControlTabPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
return *pHelper;
}
// beans::XMultiPropertySet
-uno::Reference< beans::XPropertySetInfo > UnoControlTabPageModel::getPropertySetInfo( ) throw(uno::RuntimeException, std::exception)
+uno::Reference< beans::XPropertySetInfo > UnoControlTabPageModel::getPropertySetInfo( )
{
static uno::Reference< beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
return xInfo;
}
////----- XInitialization -------------------------------------------------------------------
void SAL_CALL UnoControlTabPageModel::initialize (const Sequence<Any>& rArguments)
- throw (css::uno::Exception, css::uno::RuntimeException, std::exception)
{
sal_Int16 nPageId = -1;
if ( rArguments.getLength() == 1 )
@@ -181,25 +180,22 @@ OUString UnoControlTabPage::GetComponentServiceName()
}
OUString SAL_CALL UnoControlTabPage::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return OUString("stardiv.Toolkit.UnoControlTabPage");
}
sal_Bool SAL_CALL UnoControlTabPage::supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence<OUString> SAL_CALL UnoControlTabPage::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.awt.tab.UnoControlTabPage" };
return aSeq;
}
-void UnoControlTabPage::dispose() throw(RuntimeException, std::exception)
+void UnoControlTabPage::dispose()
{
SolarMutexGuard aSolarGuard;
@@ -208,12 +204,12 @@ void UnoControlTabPage::dispose() throw(RuntimeException, std::exception)
ControlContainerBase::dispose();
}
-void SAL_CALL UnoControlTabPage::disposing( const lang::EventObject& Source )throw(RuntimeException, std::exception)
+void SAL_CALL UnoControlTabPage::disposing( const lang::EventObject& Source )
{
ControlContainerBase::disposing( Source );
}
-void UnoControlTabPage::createPeer( const Reference< XToolkit > & rxToolkit, const Reference< XWindowPeer > & rParentPeer ) throw(RuntimeException, std::exception)
+void UnoControlTabPage::createPeer( const Reference< XToolkit > & rxToolkit, const Reference< XWindowPeer > & rParentPeer )
{
SolarMutexGuard aSolarGuard;
ImplUpdateResourceResolver();
@@ -239,7 +235,6 @@ static ::Size ImplMapPixelToAppFont( OutputDevice* pOutDev, const ::Size& aSize
}
// css::awt::XWindowListener
void SAL_CALL UnoControlTabPage::windowResized( const css::awt::WindowEvent& e )
-throw (css::uno::RuntimeException, std::exception)
{
OutputDevice*pOutDev = Application::GetDefaultDevice();
DBG_ASSERT( pOutDev, "Missing Default Device!" );
@@ -277,7 +272,6 @@ throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL UnoControlTabPage::windowMoved( const css::awt::WindowEvent& e )
-throw (css::uno::RuntimeException, std::exception)
{
OutputDevice*pOutDev = Application::GetDefaultDevice();
DBG_ASSERT( pOutDev, "Missing Default Device!" );
@@ -303,13 +297,11 @@ throw (css::uno::RuntimeException, std::exception)
}
void SAL_CALL UnoControlTabPage::windowShown( const css::lang::EventObject& e )
-throw (css::uno::RuntimeException, std::exception)
{
(void)e;
}
void SAL_CALL UnoControlTabPage::windowHidden( const css::lang::EventObject& e )
-throw (css::uno::RuntimeException, std::exception)
{
(void)e;
}