diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 4 | ||||
-rw-r--r-- | svtools/source/control/valueset.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 22bfde7febe5..3d4ce47b0814 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -1186,8 +1186,8 @@ void FontSizeBox::Fill( const FontList* pList ) if ( pAry == FontList::GetStdSizeAry() ) { // for scalable fonts all font size names - sal_uLong nCount = aFontSizeNames.Count(); - for( sal_uLong i = 0; i < nCount; i++ ) + sal_uInt32 nCount = aFontSizeNames.Count(); + for( sal_uInt32 i = 0; i < nCount; i++ ) { OUString aSizeName = aFontSizeNames.GetIndexName( i ); int nSize = aFontSizeNames.GetIndexSize( i ); diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 89ce7f8cdb23..87696d1a7886 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -1076,8 +1076,8 @@ void ValueSet::Format(vcl::RenderContext const & rRenderContext) } // draw items - sal_uLong nFirstItem = static_cast<sal_uLong>(mnFirstLine) * mnCols; - sal_uLong nLastItem = nFirstItem + (mnVisLines * mnCols); + size_t nFirstItem = static_cast<size_t>(mnFirstLine) * mnCols; + size_t nLastItem = nFirstItem + (mnVisLines * mnCols); maItemListRect.SetLeft( x ); maItemListRect.SetTop( y ); |