Kaydet (Commit) 9bd84cfb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst 5ff52393
...@@ -404,7 +404,7 @@ unsigned char * codeSnippet( unsigned char * code, ...@@ -404,7 +404,7 @@ unsigned char * codeSnippet( unsigned char * code,
sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset, sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset,
bool bHasHiddenParam ) 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 ) if ( bHasHiddenParam )
nOffsetAndIndex |= 0x80000000; nOffsetAndIndex |= 0x80000000;
......
...@@ -59,7 +59,7 @@ const OUString & cppu_cppenv_getStaticOIdPart() ...@@ -59,7 +59,7 @@ const OUString & cppu_cppenv_getStaticOIdPart()
::rtl_getGlobalProcessId( ar ); ::rtl_getGlobalProcessId( ar );
for (unsigned char i : 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__)) #if (defined(__GNUC__) && defined(__APPLE__))
s_pStaticOidPart = new OUString( aRet.makeStringAndClear() ); s_pStaticOidPart = new OUString( aRet.makeStringAndClear() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment