diff options
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/shared/component.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/cpp_uno/shared/component.cxx b/bridges/source/cpp_uno/shared/component.cxx index 02b683861c66..97a0214f6705 100644 --- a/bridges/source/cpp_uno/shared/component.cxx +++ b/bridges/source/cpp_uno/shared/component.cxx @@ -60,9 +60,9 @@ const OUString & SAL_CALL cppu_cppenv_getStaticOIdPart() // good guid sal_uInt8 ar[16]; ::rtl_getGlobalProcessId( ar ); - for ( sal_Int32 i = 0; i < 16; ++i ) + for (unsigned char i : ar) { - aRet.append( (sal_Int32)ar[i], 16 ); + aRet.append( (sal_Int32)i, 16 ); } #if (defined(__GNUC__) && defined(__APPLE__)) s_pStaticOidPart = new OUString( aRet.makeStringAndClear() ); |