summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/tkthrobber.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/controls/tkthrobber.cxx')
-rw-r--r--toolkit/source/controls/tkthrobber.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/toolkit/source/controls/tkthrobber.cxx b/toolkit/source/controls/tkthrobber.cxx
index 2b27b1dff48b..74b078ebacfc 100644
--- a/toolkit/source/controls/tkthrobber.cxx
+++ b/toolkit/source/controls/tkthrobber.cxx
@@ -107,8 +107,10 @@ namespace toolkit
{
uno::Sequence< ::rtl::OUString > aServices( UnoControlModel::getSupportedServiceNames() );
aServices.realloc( aServices.getLength() + 2 );
- aServices[ aServices.getLength() - 2 ] = ::rtl::OUString::createFromAscii( szServiceName_UnoThrobberControlModel );
- aServices[ aServices.getLength() - 1 ] = ::rtl::OUString::createFromAscii( szServiceName2_UnoThrobberControlModel );
+ aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 2] =
+ ::rtl::OUString::createFromAscii(szServiceName_UnoThrobberControlModel);
+ aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 1] =
+ ::rtl::OUString::createFromAscii(szServiceName2_UnoThrobberControlModel);
return aServices;
}
@@ -160,8 +162,10 @@ namespace toolkit
{
uno::Sequence< ::rtl::OUString > aServices( UnoControlBase::getSupportedServiceNames() );
aServices.realloc( aServices.getLength() + 2 );
- aServices[ aServices.getLength() - 2 ] = ::rtl::OUString::createFromAscii( szServiceName_UnoThrobberControl );
- aServices[ aServices.getLength() - 1 ] = ::rtl::OUString::createFromAscii( szServiceName2_UnoThrobberControl );
+ aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 2] =
+ ::rtl::OUString::createFromAscii(szServiceName_UnoThrobberControl);
+ aServices[sal::static_int_cast<sal_uInt32>(aServices.getLength()) - 1] =
+ ::rtl::OUString::createFromAscii(szServiceName2_UnoThrobberControl);
return aServices;
}