sd/source/core/CustomAnimationEffect.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 37dc769a410ba99c81066658b343562ee7fd1466 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Mar 28 17:31:54 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Mar 28 23:28:45 2022 +0200 -Werror,-Wunused-but-set-variable ...ever since c97f9af5e47ea234ad709a1f66c1e8ed20640066 "tdf#129708 speed-up: reuse enumeration for each effect" Change-Id: Ice1a613676f25e3a63a3479548538d33f1b5ee47 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132236 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx index 9af6a3f648d6..069439c64592 100644 --- a/sd/source/core/CustomAnimationEffect.cxx +++ b/sd/source/core/CustomAnimationEffect.cxx @@ -2179,7 +2179,7 @@ bool EffectSequenceHelper::getParagraphNumberingLevels( const Reference< XShape if( xEnumeration.is() ) { - for( sal_Int32 index = 0; xEnumeration->hasMoreElements(); index++ ) + while( xEnumeration->hasMoreElements() ) { Reference< XPropertySet > xParaSet; xEnumeration->nextElement() >>= xParaSet;