summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-01-27 08:43:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-01-27 10:36:50 +0100
commit8762cc5f41e00e6f15e67b4f691e40751588ce17 (patch)
tree09a6ec8571cc6622863debd54c88cba11345191e /toolkit
parentb29a3b6bac8162ccadc8dcf870bd73b9e1e964a2 (diff)
Split independent loop vars, giving them appropriate types
...and thus avoiding an unnecessary explicit cast from sal_Int32 to sal_uInt32 Change-Id: I536fc52960259509a3b722fed9268dc6ec9e76a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87482 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index aa4d55237de0..a735178bdca1 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -785,8 +785,7 @@ void UnoControlModel::read( const css::uno::Reference< css::io::XObjectInputStre
// Used for import of old parts in css::awt::FontDescriptor
std::unique_ptr<css::awt::FontDescriptor> pFD;
- sal_uInt32 i;
- for ( i = 0; i < nProps; i++ )
+ for ( sal_uInt32 i = 0; i < nProps; i++ )
{
sal_Int32 nPropDataBeginMark = xMark->createMark();
sal_Int32 nPropDataLen = InStream->readLong();
@@ -999,7 +998,7 @@ void UnoControlModel::read( const css::uno::Reference< css::io::XObjectInputStre
}
if ( bInvalidEntries )
{
- for ( i = 0; i < static_cast<sal_uInt32>(aProps.getLength()); i++ )
+ for ( sal_Int32 i = 0; i < aProps.getLength(); i++ )
{
if ( aProps.getConstArray()[i].isEmpty() )
{