diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-29 09:59:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-01 09:58:56 +0200 |
commit | 55bc128636596032c23ee855904822ad813986fc (patch) | |
tree | ba097deaf15579f0148a68679d915e3ba25d52c4 /forms | |
parent | c9fd4aa8aa969ef2b669813acee15d6efcf1ecde (diff) |
loplugin:loopvartoosmall
Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/ListBox.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index c6243902ccc5..890e901a587a 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -610,7 +610,7 @@ namespace frm pStr++; } aListSourceSeq.realloc( nTokens ); - for (sal_uInt16 i=0; i<nTokens; ++i) + for (sal_Int32 i=0; i<nTokens; ++i) { sal_Int32 nTmp = 0; aListSourceSeq.getArray()[i] = sListSource.getToken(i,';',nTmp); @@ -941,9 +941,9 @@ namespace frm if(*aBoundColumn == -1) { // the type of i matters! It will be the type of the ORowSetValue pushed to aValueList! - for(sal_Int16 i=0; static_cast<ValueList::size_type>(i) < aDisplayList.size(); ++i) + for(size_t i=0; i < aDisplayList.size(); ++i) { - aValueList.push_back(i); + aValueList.push_back(static_cast<connectivity::ORowSetValue >(i)); } } else |