diff options
Diffstat (limited to 'toolkit/source/controls/tksimpleanimation.cxx')
-rw-r--r-- | toolkit/source/controls/tksimpleanimation.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/toolkit/source/controls/tksimpleanimation.cxx b/toolkit/source/controls/tksimpleanimation.cxx index 56192b22d48d..4661144a5cb2 100644 --- a/toolkit/source/controls/tksimpleanimation.cxx +++ b/toolkit/source/controls/tksimpleanimation.cxx @@ -109,8 +109,10 @@ namespace toolkit { uno::Sequence< ::rtl::OUString > aServices( UnoControlModel::getSupportedServiceNames() ); aServices.realloc( aServices.getLength() + 2 ); - aServices[ aServices.getLength() - 2 ] = ::rtl::OUString::createFromAscii( szServiceName_UnoSimpleAnimationControlModel ); - aServices[ aServices.getLength() - 1 ] = ::rtl::OUString::createFromAscii( szServiceName2_UnoSimpleAnimationControlModel ); + aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 2] + = ::rtl::OUString::createFromAscii( szServiceName_UnoSimpleAnimationControlModel ); + aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 1] + = ::rtl::OUString::createFromAscii( szServiceName2_UnoSimpleAnimationControlModel ); return aServices; } |