summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:28:57 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:28:57 +0100
commit9bd84cfb52eac91ee4bd1376f1a4b053afc24ab5 (patch)
treea86d13f0b84f00feffe9cec0fa2c55688ea9ea87 /bridges
parent5ff52393f9082c82e8083fbdbb2bd899b443ea15 (diff)
More loplugin:cstylecast: bridges
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I4d48f46fa64fe866081cd85c731a93b4bfcdf787
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx2
-rw-r--r--bridges/source/cpp_uno/shared/component.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
index cba6302ce7b0..12148904f9fd 100644
--- a/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx
@@ -404,7 +404,7 @@ unsigned char * codeSnippet( unsigned char * code,
sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset,
bool bHasHiddenParam )
{
- sal_uInt64 nOffsetAndIndex = ( ( (sal_uInt64) nVtableOffset ) << 32 ) | ( (sal_uInt64) nFunctionIndex );
+ sal_uInt64 nOffsetAndIndex = ( static_cast<sal_uInt64>(nVtableOffset) << 32 ) | static_cast<sal_uInt64>(nFunctionIndex);
if ( bHasHiddenParam )
nOffsetAndIndex |= 0x80000000;
diff --git a/bridges/source/cpp_uno/shared/component.cxx b/bridges/source/cpp_uno/shared/component.cxx
index 48b32331bf2e..7b380a425792 100644
--- a/bridges/source/cpp_uno/shared/component.cxx
+++ b/bridges/source/cpp_uno/shared/component.cxx
@@ -59,7 +59,7 @@ const OUString & cppu_cppenv_getStaticOIdPart()
::rtl_getGlobalProcessId( ar );
for (unsigned char i : ar)
{
- aRet.append( (sal_Int32)i, 16 );
+ aRet.append( static_cast<sal_Int32>(i), 16 );
}
#if (defined(__GNUC__) && defined(__APPLE__))
s_pStaticOidPart = new OUString( aRet.makeStringAndClear() );