From 37dc769a410ba99c81066658b343562ee7fd1466 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 28 Mar 2022 17:31:54 +0200 Subject: -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 --- sd/source/core/CustomAnimationEffect.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd/source') 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; -- cgit