From ec8c98f59869bee0e327d32f39480a0e4b1330bc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Jun 2017 11:31:15 +0200 Subject: use more SAL_N_ELEMENTS part 3 Change-Id: I82e366fefd2e31928b99840fe76649cc3521e623 Reviewed-on: https://gerrit.libreoffice.org/38789 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- animations/source/animcore/animcore.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'animations') diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index 2d75b522b2f3..05b7a4747970 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -423,7 +423,7 @@ AnimationNode::AnimationNode( sal_Int16 nNodeType ) mnIterateType( css::presentation::ShapeAnimationSubType::AS_WHOLE ), mfIterateInterval(0.0) { - assert((sal_uInt32)nNodeType < sizeof(mpTypes)/sizeof(Sequence*)); + assert(nNodeType < int(SAL_N_ELEMENTS(mpTypes))); } AnimationNode::AnimationNode( const AnimationNode& rNode ) -- cgit