diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-11-03 00:37:29 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-11-02 22:16:06 +0100 |
commit | ad686b26cec93653b67642f79bace16df0fd1348 (patch) | |
tree | af60fa5985659deb5a5c15bae45099b84f466e98 /cppu/source/helper | |
parent | a9d1324b1dbf4a74ee0b02859eb3197005df1bb2 (diff) |
No need to use SAL_THROW_EXTERN_C macro in CXX
Change-Id: I6eb9f0431a9402479a2d90d5b6f68b611d52a9f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175957
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cppu/source/helper')
-rw-r--r-- | cppu/source/helper/purpenv/helper_purpenv_Environment.cxx | 8 | ||||
-rw-r--r-- | cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx | 12 | ||||
-rw-r--r-- | cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx | 9 |
3 files changed, 12 insertions, 17 deletions
diff --git a/cppu/source/helper/purpenv/helper_purpenv_Environment.cxx b/cppu/source/helper/purpenv/helper_purpenv_Environment.cxx index a0163939ffb5..50e6eba1c3c4 100644 --- a/cppu/source/helper/purpenv/helper_purpenv_Environment.cxx +++ b/cppu/source/helper/purpenv/helper_purpenv_Environment.cxx @@ -128,25 +128,25 @@ static void s_acquire(uno_Environment * pEnv) //SAL_THROW_EXTERN_C() pBase->acquire(); } -static void s_release(uno_Environment * pEnv) SAL_THROW_EXTERN_C() +static void s_release(uno_Environment * pEnv) noexcept { Base * pBase = static_cast<Base *>(pEnv->pReserved); pBase->release(); } -static void s_harden(uno_Environment ** ppHardEnv, uno_Environment * pEnv) SAL_THROW_EXTERN_C() +static void s_harden(uno_Environment ** ppHardEnv, uno_Environment * pEnv) noexcept { Base * pBase = static_cast<Base *>(pEnv->pReserved); pBase->harden(ppHardEnv); } -static void s_acquireWeak(uno_Environment * pEnv) SAL_THROW_EXTERN_C() +static void s_acquireWeak(uno_Environment * pEnv) noexcept { Base * pBase = static_cast<Base *>(pEnv->pReserved); pBase->acquireWeak(); } -static void s_releaseWeak(uno_Environment * pEnv) SAL_THROW_EXTERN_C() +static void s_releaseWeak(uno_Environment * pEnv) noexcept { Base * pBase = static_cast<Base *>(pEnv->pReserved); pBase->releaseWeak(); diff --git a/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx b/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx index e5d96658dcf5..1fc4436f4f2f 100644 --- a/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx +++ b/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx @@ -63,8 +63,7 @@ static void s_mapInterface( uno_Mapping * puno_Mapping, void ** ppOut, void * pUnoI, - typelib_InterfaceTypeDescription * pTypeDescr ) - SAL_THROW_EXTERN_C() + typelib_InterfaceTypeDescription * pTypeDescr ) noexcept { Mapping * pMapping = static_cast<Mapping *>(puno_Mapping); pMapping->mapInterface( @@ -73,15 +72,13 @@ static void s_mapInterface( } extern "C" { -static void s_acquire(uno_Mapping * puno_Mapping) - SAL_THROW_EXTERN_C() +static void s_acquire(uno_Mapping * puno_Mapping) noexcept { Mapping * pMapping = static_cast<Mapping *>(puno_Mapping); pMapping->acquire(); } -static void s_release(uno_Mapping * puno_Mapping) - SAL_THROW_EXTERN_C() +static void s_release(uno_Mapping * puno_Mapping) noexcept { Mapping * pMapping = static_cast<Mapping * >(puno_Mapping); pMapping->release(); @@ -97,8 +94,7 @@ static void s_getIdentifier_v(va_list * pParam) pEnv->getObjectIdentifier(pEnv, ppOid, pUnoI); } -static void s_free(uno_Mapping * puno_Mapping) - SAL_THROW_EXTERN_C() +static void s_free(uno_Mapping * puno_Mapping) noexcept { Mapping * pMapping = static_cast<Mapping *>(puno_Mapping); delete pMapping; diff --git a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx index db4820fc9a45..fc4f82daf07c 100644 --- a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx +++ b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx @@ -103,8 +103,7 @@ extern "C" { static void s_Proxy_dispatch( typelib_TypeDescription const * pMemberType, void * pReturn, void * pArgs[], - uno_Any ** ppException) - SAL_THROW_EXTERN_C() + uno_Any ** ppException) noexcept { Proxy * pThis = static_cast<Proxy *>(pUnoI); @@ -158,20 +157,20 @@ extern "C" { static void s_Proxy_dispatch( ppException ); }} -extern "C" void Proxy_free(SAL_UNUSED_PARAMETER uno_ExtEnvironment * /*pEnv*/, void * pProxy) SAL_THROW_EXTERN_C() +extern "C" void Proxy_free(SAL_UNUSED_PARAMETER uno_ExtEnvironment * /*pEnv*/, void * pProxy) noexcept { Proxy * pThis = static_cast<Proxy * >(static_cast<uno_Interface *>(pProxy)); delete pThis; } extern "C" { -static void s_Proxy_acquire(uno_Interface * pUnoI) SAL_THROW_EXTERN_C() +static void s_Proxy_acquire(uno_Interface * pUnoI) noexcept { Proxy * pProxy = static_cast<Proxy *>(pUnoI); pProxy->acquire(); } -static void s_Proxy_release(uno_Interface * pUnoI) SAL_THROW_EXTERN_C() +static void s_Proxy_release(uno_Interface * pUnoI) noexcept { Proxy * pProxy = static_cast<Proxy *>(pUnoI); pProxy->release(); |