summaryrefslogtreecommitdiff
path: root/svtools
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 /svtools
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 'svtools')
-rw-r--r--svtools/source/control/valueacc.cxx4
-rw-r--r--svtools/source/control/valueimp.hxx4
-rw-r--r--svtools/source/filter/SvFilterOptionsDialog.cxx8
-rw-r--r--svtools/source/graphic/renderer.cxx8
-rw-r--r--svtools/source/java/javacontext.cxx4
-rw-r--r--svtools/source/java/javainteractionhandler.cxx4
-rw-r--r--svtools/source/misc/embedhlp.cxx2
-rw-r--r--svtools/source/uno/framestatuslistener.cxx4
-rw-r--r--svtools/source/uno/statusbarcontroller.cxx4
-rw-r--r--svtools/source/uno/toolboxcontroller.cxx4
-rw-r--r--svtools/source/uno/unoimap.cxx8
11 files changed, 27 insertions, 27 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx
index 76fd5f4cf83b..a6364d784064 100644
--- a/svtools/source/control/valueacc.cxx
+++ b/svtools/source/control/valueacc.cxx
@@ -85,7 +85,7 @@ const uno::Sequence< sal_Int8 >& ValueItemAcc::getUnoTunnelId()
ValueItemAcc* ValueItemAcc::getImplementation( const uno::Reference< uno::XInterface >& rxData )
- throw()
+ noexcept
{
try
{
@@ -470,7 +470,7 @@ const uno::Sequence< sal_Int8 >& ValueSetAcc::getUnoTunnelId()
ValueSetAcc* ValueSetAcc::getImplementation( const uno::Reference< uno::XInterface >& rxData )
- throw()
+ noexcept
{
try
{
diff --git a/svtools/source/control/valueimp.hxx b/svtools/source/control/valueimp.hxx
index 5f874acb99db..b980cb1f5c90 100644
--- a/svtools/source/control/valueimp.hxx
+++ b/svtools/source/control/valueimp.hxx
@@ -88,7 +88,7 @@ public:
void FireAccessibleEvent( short nEventId, const css::uno::Any& rOldValue, const css::uno::Any& rNewValue );
bool HasAccessibleListeners() const { return( mxEventListeners.size() > 0 ); }
- static ValueSetAcc* getImplementation( const css::uno::Reference< css::uno::XInterface >& rxData ) throw();
+ static ValueSetAcc* getImplementation( const css::uno::Reference< css::uno::XInterface >& rxData ) noexcept;
public:
@@ -212,7 +212,7 @@ public:
void FireAccessibleEvent( short nEventId, const css::uno::Any& rOldValue, const css::uno::Any& rNewValue );
- static ValueItemAcc* getImplementation( const css::uno::Reference< css::uno::XInterface >& rxData ) throw();
+ static ValueItemAcc* getImplementation( const css::uno::Reference< css::uno::XInterface >& rxData ) noexcept;
public:
diff --git a/svtools/source/filter/SvFilterOptionsDialog.cxx b/svtools/source/filter/SvFilterOptionsDialog.cxx
index cfd88abb27f2..3848f166f5e2 100644
--- a/svtools/source/filter/SvFilterOptionsDialog.cxx
+++ b/svtools/source/filter/SvFilterOptionsDialog.cxx
@@ -72,8 +72,8 @@ public:
explicit SvFilterOptionsDialog( const uno::Reference< uno::XComponentContext >& _rxORB );
// 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;
// XInitialization
virtual void SAL_CALL initialize( const uno::Sequence< uno::Any > & aArguments ) override;
@@ -104,13 +104,13 @@ SvFilterOptionsDialog::SvFilterOptionsDialog( const uno::Reference< uno::XCompon
{
}
-void SAL_CALL SvFilterOptionsDialog::acquire() throw()
+void SAL_CALL SvFilterOptionsDialog::acquire() noexcept
{
OWeakObject::acquire();
}
-void SAL_CALL SvFilterOptionsDialog::release() throw()
+void SAL_CALL SvFilterOptionsDialog::release() noexcept
{
OWeakObject::release();
}
diff --git a/svtools/source/graphic/renderer.cxx b/svtools/source/graphic/renderer.cxx
index c197e6e0c4d5..220e047a84aa 100644
--- a/svtools/source/graphic/renderer.cxx
+++ b/svtools/source/graphic/renderer.cxx
@@ -58,8 +58,8 @@ public:
// XInterface
virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
- 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;
// XServiceInfo
virtual OUString SAL_CALL getImplementationName() override;
@@ -122,14 +122,14 @@ uno::Any SAL_CALL GraphicRendererVCL::queryInterface( const uno::Type & rType )
void SAL_CALL GraphicRendererVCL::acquire()
- throw()
+ noexcept
{
OWeakAggObject::acquire();
}
void SAL_CALL GraphicRendererVCL::release()
- throw()
+ noexcept
{
OWeakAggObject::release();
}
diff --git a/svtools/source/java/javacontext.cxx b/svtools/source/java/javacontext.cxx
index c804e5f0b99e..a7d97f77ddf4 100644
--- a/svtools/source/java/javacontext.cxx
+++ b/svtools/source/java/javacontext.cxx
@@ -47,12 +47,12 @@ Any SAL_CALL JavaContext::queryInterface(const Type& aType )
return Any();
}
-void SAL_CALL JavaContext::acquire( ) throw ()
+void SAL_CALL JavaContext::acquire( ) noexcept
{
osl_atomic_increment( &m_aRefCount );
}
-void SAL_CALL JavaContext::release( ) throw ()
+void SAL_CALL JavaContext::release( ) noexcept
{
if (! osl_atomic_decrement( &m_aRefCount ))
delete this;
diff --git a/svtools/source/java/javainteractionhandler.cxx b/svtools/source/java/javainteractionhandler.cxx
index ce360463b6dc..c032f41146c1 100644
--- a/svtools/source/java/javainteractionhandler.cxx
+++ b/svtools/source/java/javainteractionhandler.cxx
@@ -80,12 +80,12 @@ Any SAL_CALL JavaInteractionHandler::queryInterface(const Type& aType )
return Any();
}
-void SAL_CALL JavaInteractionHandler::acquire( ) throw ()
+void SAL_CALL JavaInteractionHandler::acquire( ) noexcept
{
osl_atomic_increment( &m_aRefCount );
}
-void SAL_CALL JavaInteractionHandler::release( ) throw ()
+void SAL_CALL JavaInteractionHandler::release( ) noexcept
{
if (! osl_atomic_decrement( &m_aRefCount ))
delete this;
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index 8146c8fd956a..2fb3954ef722 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -804,7 +804,7 @@ uno::Reference< io::XInputStream > EmbeddedObjectRef::GetGraphicReplacementStrea
sal_Int64 nViewAspect,
const uno::Reference< embed::XEmbeddedObject >& xObj,
OUString* pMediaType )
- throw()
+ noexcept
{
return ::comphelper::EmbeddedObjectContainer::GetGraphicReplacementStream(nViewAspect,xObj,pMediaType);
}
diff --git a/svtools/source/uno/framestatuslistener.cxx b/svtools/source/uno/framestatuslistener.cxx
index ba158c2ddcf3..33c475e25dae 100644
--- a/svtools/source/uno/framestatuslistener.cxx
+++ b/svtools/source/uno/framestatuslistener.cxx
@@ -66,12 +66,12 @@ Any SAL_CALL FrameStatusListener::queryInterface( const Type& rType )
return OWeakObject::queryInterface( rType );
}
-void SAL_CALL FrameStatusListener::acquire() throw ()
+void SAL_CALL FrameStatusListener::acquire() noexcept
{
OWeakObject::acquire();
}
-void SAL_CALL FrameStatusListener::release() throw ()
+void SAL_CALL FrameStatusListener::release() noexcept
{
OWeakObject::release();
}
diff --git a/svtools/source/uno/statusbarcontroller.cxx b/svtools/source/uno/statusbarcontroller.cxx
index 28a146d9db84..fae89f287b9e 100644
--- a/svtools/source/uno/statusbarcontroller.cxx
+++ b/svtools/source/uno/statusbarcontroller.cxx
@@ -107,12 +107,12 @@ Any SAL_CALL StatusbarController::queryInterface( const Type& rType )
return OWeakObject::queryInterface( rType );
}
-void SAL_CALL StatusbarController::acquire() throw ()
+void SAL_CALL StatusbarController::acquire() noexcept
{
OWeakObject::acquire();
}
-void SAL_CALL StatusbarController::release() throw ()
+void SAL_CALL StatusbarController::release() noexcept
{
OWeakObject::release();
}
diff --git a/svtools/source/uno/toolboxcontroller.cxx b/svtools/source/uno/toolboxcontroller.cxx
index 949c7c1cfb68..fa881b64ad4b 100644
--- a/svtools/source/uno/toolboxcontroller.cxx
+++ b/svtools/source/uno/toolboxcontroller.cxx
@@ -142,12 +142,12 @@ Any SAL_CALL ToolboxController::queryInterface( const Type& rType )
return a.hasValue() ? a : OPropertyContainer::queryInterface(rType);
}
-void SAL_CALL ToolboxController::acquire() throw ()
+void SAL_CALL ToolboxController::acquire() noexcept
{
ToolboxController_Base::acquire();
}
-void SAL_CALL ToolboxController::release() throw ()
+void SAL_CALL ToolboxController::release() noexcept
{
ToolboxController_Base::release();
}
diff --git a/svtools/source/uno/unoimap.cxx b/svtools/source/uno/unoimap.cxx
index dbd2724e3661..f87973281f45 100644
--- a/svtools/source/uno/unoimap.cxx
+++ b/svtools/source/uno/unoimap.cxx
@@ -89,8 +89,8 @@ public:
// XInterface
virtual Any SAL_CALL queryAggregation( const Type & rType ) override;
virtual Any SAL_CALL queryInterface( const Type & rType ) override;
- 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;
// XTypeProvider
virtual Sequence< Type > SAL_CALL getTypes( ) override;
@@ -328,12 +328,12 @@ Any SAL_CALL SvUnoImageMapObject::queryAggregation( const Type & rType )
return aAny;
}
-void SAL_CALL SvUnoImageMapObject::acquire() throw()
+void SAL_CALL SvUnoImageMapObject::acquire() noexcept
{
OWeakAggObject::acquire();
}
-void SAL_CALL SvUnoImageMapObject::release() throw()
+void SAL_CALL SvUnoImageMapObject::release() noexcept
{
OWeakAggObject::release();
}