summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-10-13 17:11:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-10-14 08:33:39 +0200
commit06ac088aeec09f7f90d3ccbffc2f5eed04b82151 (patch)
treef6632893730d62bf660ec86be1379884b806ac26
parente00a5757e47cf783d7948ad850cb6fa76b98d73a (diff)
loplugin:redundantcast (clang-cl)
Change-Id: I2918d9ac8a4600bf5729604bda1beffb1dca78d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104244 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--bridges/source/cpp_uno/msvc_shared/cpp2uno.cxx4
-rw-r--r--bridges/source/cpp_uno/msvc_shared/except.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/bridges/source/cpp_uno/msvc_shared/cpp2uno.cxx b/bridges/source/cpp_uno/msvc_shared/cpp2uno.cxx
index e114a1019df7..872cc079a984 100644
--- a/bridges/source/cpp_uno/msvc_shared/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/msvc_shared/cpp2uno.cxx
@@ -247,7 +247,7 @@ typelib_TypeClass __cdecl cpp_mediate(void** pCallStack, const sal_Int32 nFuncti
+ " vtable index " + OUString::number(nFunctionIndex) + "/"
+ OUString::number(pInterfaceTD->nMapFunctionIndexToMemberIndex);
SAL_WARN("bridges", sError);
- throw uno::RuntimeException(sError, reinterpret_cast<uno::XInterface*>(pThis));
+ throw uno::RuntimeException(sError, static_cast<uno::XInterface*>(pThis));
}
// determine called method
@@ -345,7 +345,7 @@ typelib_TypeClass __cdecl cpp_mediate(void** pCallStack, const sal_Int32 nFuncti
}
default:
throw uno::RuntimeException("no member description found!",
- reinterpret_cast<uno::XInterface*>(pThis));
+ static_cast<uno::XInterface*>(pThis));
}
return eRet;
diff --git a/bridges/source/cpp_uno/msvc_shared/except.cxx b/bridges/source/cpp_uno/msvc_shared/except.cxx
index f6914922a14f..5bce2b04bc47 100644
--- a/bridges/source/cpp_uno/msvc_shared/except.cxx
+++ b/bridges/source/cpp_uno/msvc_shared/except.cxx
@@ -133,7 +133,7 @@ ExceptionInfos::~ExceptionInfos() throw()
osl::MutexGuard aGuard(m_aMutex);
for (auto& rEntry : m_allRaiseInfos)
- delete reinterpret_cast<RaiseInfo*>(rEntry.second);
+ delete static_cast<RaiseInfo*>(rEntry.second);
}
RaiseInfo* ExceptionInfos::getRaiseInfo(typelib_TypeDescription* pTD) throw()