[Libreoffice-commits] core.git: xmloff/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Dec 31 11:48:32 UTC 2020
xmloff/source/style/xmlexppr.cxx | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
New commits:
commit a6e7509e1b7f20f7bd266d9c4d7bd0e5b1c72907
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Dec 31 10:13:09 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Dec 31 12:47:54 2020 +0100
loplugin:loopvartoosmall fix build
Change-Id: I2f9aa75f8e4f0577261fb84a9629c183d3a72b70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108534
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx
index a9cc2962155e..0e35f8b1948b 100644
--- a/xmloff/source/style/xmlexppr.cxx
+++ b/xmloff/source/style/xmlexppr.cxx
@@ -267,7 +267,7 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray(
const beans::GetDirectPropertyTolerantResult *pResults = aResults.getConstArray();
FilterPropertyInfoList_Impl::iterator aPropIter(aPropInfos.begin());
XMLPropertyState aNewProperty( -1 );
- sal_uInt32 i = 0;
+ size_t i = 0;
while (nResultCount > 0 && i < aPropInfos.size())
{
if (pResults->Name == aPropIter->GetApiName())
@@ -332,9 +332,8 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray(
{
// step 1: get value count
sal_uInt32 nValueCount = 0;
- sal_uInt32 i;
- for( i = 0; i < aPropInfos.size(); ++i, ++pStates )
+ for (size_t i = 0; i < aPropInfos.size(); ++i, ++pStates)
{
if( *pStates == PropertyState_DIRECT_VALUE )
nValueCount++;
@@ -353,7 +352,7 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray(
OSL_ENSURE(aItr != aPropInfos.end(),"Invalid iterator!");
pStates = aStates.getConstArray();
- i = 0;
+ sal_uInt32 i = 0;
while( i < nValueCount )
{
if( *pStates == PropertyState_DIRECT_VALUE )
@@ -395,7 +394,7 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray(
const Any *pValues = aValues.getConstArray();
FilterPropertyInfoList_Impl::iterator aItr = aPropInfos.begin();
- for(sal_uInt32 i = 0; i < aPropInfos.size(); ++i)
+ for (size_t i = 0; i < aPropInfos.size(); ++i)
{
// The value is stored in the PropertySet itself, add to list.
XMLPropertyState aNewProperty( -1 );
@@ -413,7 +412,7 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray(
else
{
FilterPropertyInfoList_Impl::iterator aItr = aPropInfos.begin();
- for(sal_uInt32 i = 0; i < aPropInfos.size(); ++i)
+ for (size_t i = 0; i < aPropInfos.size(); ++i)
{
bool bDirectValue =
!pStates || *pStates == PropertyState_DIRECT_VALUE;
More information about the Libreoffice-commits
mailing list