xmloff/source/style/xmlexppr.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit ce7729ab473b971164822338661d1a4828d860d2 Author: Jochen Nitschke <j.nitschke+loger...@ok.de> AuthorDate: Sat May 1 16:02:00 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat May 1 19:02:42 2021 +0200 remove superfluous loop variable Change-Id: I418ea4b1770b82541bae8901d8d1b78d36cfb5d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114920 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx index bd3ee809ec1a..129a568065c1 100644 --- a/xmloff/source/style/xmlexppr.cxx +++ b/xmloff/source/style/xmlexppr.cxx @@ -267,8 +267,7 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray( const beans::GetDirectPropertyTolerantResult *pResults = aResults.getConstArray(); FilterPropertyInfoList_Impl::iterator aPropIter(aPropInfos.begin()); XMLPropertyState aNewProperty( -1 ); - size_t i = 0; - while (nResultCount > 0 && i < aPropInfos.size()) + while (nResultCount > 0 && aPropIter != aPropInfos.end()) { if (pResults->Name == aPropIter->GetApiName()) { @@ -284,7 +283,6 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray( --nResultCount; } ++aPropIter; - ++i; } } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits