summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-30 08:20:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-05-02 17:02:28 +0200
commit10d29c390dd58ed629dd27fe5ed35fae28eceec3 (patch)
tree7476cbb90fff182c5bec0a5a1ef9c41a3ad29f19 /toolkit/source
parenta9243e626193ab4efe3a618413886773336a38e6 (diff)
throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite
Change-Id: I076f16d0536b534abf0ced4d76051eadb4c0e033 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114949 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx4
-rw-r--r--toolkit/source/controls/geometrycontrolmodel.cxx4
-rw-r--r--toolkit/source/controls/grid/gridcolumn.cxx2
-rw-r--r--toolkit/source/controls/grid/gridcolumn.hxx2
-rw-r--r--toolkit/source/controls/grid/grideventforwarder.cxx4
-rw-r--r--toolkit/source/controls/grid/grideventforwarder.hxx4
-rw-r--r--toolkit/source/controls/grid/sortablegriddatamodel.cxx8
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx2
-rw-r--r--toolkit/source/controls/unocontrols.cxx4
-rw-r--r--toolkit/source/hatchwindow/hatchwindow.cxx4
-rw-r--r--toolkit/source/hatchwindow/hatchwindow.hxx4
-rw-r--r--toolkit/source/helper/listenermultiplexer.cxx4
12 files changed, 23 insertions, 23 deletions
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index 42ccde3b6592..f36dcee2f0ef 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -1069,12 +1069,12 @@ Any SAL_CALL ResourceListener::queryInterface( const Type& rType )
return OWeakObject::queryInterface( rType );
}
-void SAL_CALL ResourceListener::acquire() throw ()
+void SAL_CALL ResourceListener::acquire() noexcept
{
OWeakObject::acquire();
}
-void SAL_CALL ResourceListener::release() throw ()
+void SAL_CALL ResourceListener::release() noexcept
{
OWeakObject::release();
}
diff --git a/toolkit/source/controls/geometrycontrolmodel.cxx b/toolkit/source/controls/geometrycontrolmodel.cxx
index eb21d49bc07f..53a7f02d45ef 100644
--- a/toolkit/source/controls/geometrycontrolmodel.cxx
+++ b/toolkit/source/controls/geometrycontrolmodel.cxx
@@ -274,13 +274,13 @@
}
- void SAL_CALL OGeometryControlModel_Base::acquire( ) throw()
+ void SAL_CALL OGeometryControlModel_Base::acquire( ) noexcept
{
OGCM_Base::acquire();
}
- void SAL_CALL OGeometryControlModel_Base::release( ) throw()
+ void SAL_CALL OGeometryControlModel_Base::release( ) noexcept
{
OGCM_Base::release();
}
diff --git a/toolkit/source/controls/grid/gridcolumn.cxx b/toolkit/source/controls/grid/gridcolumn.cxx
index 1b7365468d65..9fe4719abd94 100644
--- a/toolkit/source/controls/grid/gridcolumn.cxx
+++ b/toolkit/source/controls/grid/gridcolumn.cxx
@@ -292,7 +292,7 @@ namespace toolkit
}
- Sequence< sal_Int8 > GridColumn::getUnoTunnelId() throw()
+ Sequence< sal_Int8 > GridColumn::getUnoTunnelId() noexcept
{
static ::cppu::OImplementationId const aId;
return aId.getImplementationId();
diff --git a/toolkit/source/controls/grid/gridcolumn.hxx b/toolkit/source/controls/grid/gridcolumn.hxx
index 6ff9d4fe73df..e533a72e5ce5 100644
--- a/toolkit/source/controls/grid/gridcolumn.hxx
+++ b/toolkit/source/controls/grid/gridcolumn.hxx
@@ -82,7 +82,7 @@ public:
// XUnoTunnel and friends
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& i_identifier ) override;
- static css::uno::Sequence< sal_Int8 > getUnoTunnelId() throw();
+ static css::uno::Sequence< sal_Int8 > getUnoTunnelId() noexcept;
// attribute access
void setIndex( sal_Int32 const i_index );
diff --git a/toolkit/source/controls/grid/grideventforwarder.cxx b/toolkit/source/controls/grid/grideventforwarder.cxx
index a8fa7810c85d..5baf5fdda334 100644
--- a/toolkit/source/controls/grid/grideventforwarder.cxx
+++ b/toolkit/source/controls/grid/grideventforwarder.cxx
@@ -46,13 +46,13 @@ namespace toolkit
}
- void SAL_CALL GridEventForwarder::acquire() throw()
+ void SAL_CALL GridEventForwarder::acquire() noexcept
{
m_parent.acquire();
}
- void SAL_CALL GridEventForwarder::release() throw()
+ void SAL_CALL GridEventForwarder::release() noexcept
{
m_parent.release();
}
diff --git a/toolkit/source/controls/grid/grideventforwarder.hxx b/toolkit/source/controls/grid/grideventforwarder.hxx
index 713b54d04ee5..9578e62ee029 100644
--- a/toolkit/source/controls/grid/grideventforwarder.hxx
+++ b/toolkit/source/controls/grid/grideventforwarder.hxx
@@ -47,8 +47,8 @@ namespace toolkit
public:
// XInterface
- virtual void SAL_CALL acquire() throw() override;
- virtual void SAL_CALL release() throw() override;
+ virtual void SAL_CALL acquire() noexcept override;
+ virtual void SAL_CALL release() noexcept override;
// XGridDataListener
virtual void SAL_CALL rowsInserted( const css::awt::grid::GridDataEvent& Event ) override;
diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx
index e657b2d613a2..6269d727d14a 100644
--- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx
+++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx
@@ -127,8 +127,8 @@ public:
// XInterface
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
- virtual void SAL_CALL acquire( ) throw () final override;
- virtual void SAL_CALL release( ) throw () override;
+ virtual void SAL_CALL acquire( ) noexcept final override;
+ virtual void SAL_CALL release( ) noexcept override;
// XTypeProvider
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
@@ -269,13 +269,13 @@ void lcl_clear( STLCONTAINER& i_container )
}
- void SAL_CALL SortableGridDataModel::acquire( ) throw ()
+ void SAL_CALL SortableGridDataModel::acquire( ) noexcept
{
SortableGridDataModel_Base::acquire();
}
- void SAL_CALL SortableGridDataModel::release( ) throw ()
+ void SAL_CALL SortableGridDataModel::release( ) noexcept
{
SortableGridDataModel_Base::release();
}
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index f771ebf02428..fb6448366978 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -423,7 +423,7 @@ css::uno::Any UnoControlModel::queryAggregation( const css::uno::Type & rType )
// css::lang::XUnoTunnel
-const css::uno::Sequence< sal_Int8 >& UnoControlModel::getUnoTunnelId() throw()
+const css::uno::Sequence< sal_Int8 >& UnoControlModel::getUnoTunnelId() noexcept
{
static const UnoTunnelIdInit theUnoControlModelUnoTunnelId;
return theUnoControlModelUnoTunnelId.getSeq();
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx
index d3395e6fd40c..91f9af3e8ea5 100644
--- a/toolkit/source/controls/unocontrols.cxx
+++ b/toolkit/source/controls/unocontrols.cxx
@@ -178,12 +178,12 @@ uno::Any SAL_CALL UnoEditControl::queryInterface( const uno::Type & rType )
return UnoControlBase::queryInterface( rType );
}
-void SAL_CALL UnoEditControl::acquire( ) throw ()
+void SAL_CALL UnoEditControl::acquire( ) noexcept
{
UnoControlBase::acquire();
}
-void SAL_CALL UnoEditControl::release( ) throw ()
+void SAL_CALL UnoEditControl::release( ) noexcept
{
UnoControlBase::release();
}
diff --git a/toolkit/source/hatchwindow/hatchwindow.cxx b/toolkit/source/hatchwindow/hatchwindow.cxx
index 6866fde51c12..b6a5cc1aed92 100644
--- a/toolkit/source/hatchwindow/hatchwindow.cxx
+++ b/toolkit/source/hatchwindow/hatchwindow.cxx
@@ -127,13 +127,13 @@ uno::Any SAL_CALL VCLXHatchWindow::queryInterface( const uno::Type & rType )
}
void SAL_CALL VCLXHatchWindow::acquire()
- throw()
+ noexcept
{
VCLXWindow::acquire();
}
void SAL_CALL VCLXHatchWindow::release()
- throw()
+ noexcept
{
VCLXWindow::release();
}
diff --git a/toolkit/source/hatchwindow/hatchwindow.hxx b/toolkit/source/hatchwindow/hatchwindow.hxx
index 71e3d84f2dd4..52e91d12e695 100644
--- a/toolkit/source/hatchwindow/hatchwindow.hxx
+++ b/toolkit/source/hatchwindow/hatchwindow.hxx
@@ -47,8 +47,8 @@ public:
// XInterface
css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) override;
- void SAL_CALL acquire() throw() override;
- void SAL_CALL release() throw() override;
+ void SAL_CALL acquire() noexcept override;
+ void SAL_CALL release() noexcept override;
// XTypeProvider
css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
diff --git a/toolkit/source/helper/listenermultiplexer.cxx b/toolkit/source/helper/listenermultiplexer.cxx
index 80728a2dc20e..2cb6988f8a04 100644
--- a/toolkit/source/helper/listenermultiplexer.cxx
+++ b/toolkit/source/helper/listenermultiplexer.cxx
@@ -47,11 +47,11 @@ EventListenerMultiplexer::EventListenerMultiplexer( ::cppu::OWeakObject& rSource
{
}
-void SAL_CALL EventListenerMultiplexer::acquire() throw ()
+void SAL_CALL EventListenerMultiplexer::acquire() noexcept
{
return ListenerMultiplexerBase::acquire();
}
-void SAL_CALL EventListenerMultiplexer::release() throw ()
+void SAL_CALL EventListenerMultiplexer::release() noexcept
{
return ListenerMultiplexerBase::release();
}