summaryrefslogtreecommitdiff
path: root/cppuhelper/source/bootstrap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/bootstrap.cxx')
-rw-r--r--cppuhelper/source/bootstrap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppuhelper/source/bootstrap.cxx b/cppuhelper/source/bootstrap.cxx
index fe98cfc4205e..ebc913e5a330 100644
--- a/cppuhelper/source/bootstrap.cxx
+++ b/cppuhelper/source/bootstrap.cxx
@@ -144,8 +144,8 @@ Reference< XComponentContext > SAL_CALL bootstrap()
throw BootstrapException( "random pool error!" );
rtl_random_destroyPool( hPool );
::rtl::OUStringBuffer buf("uno");
- for ( sal_uInt32 i = 0; i < ARLEN( bytes ); ++i )
- buf.append( static_cast< sal_Int32 >( bytes[ i ] ) );
+ for (unsigned char byte : bytes)
+ buf.append( static_cast< sal_Int32 >( byte ) );
OUString sPipeName( buf.makeStringAndClear() );
// arguments