From 2c3d0ff9f83aab89980529da2aa3837390b84ef7 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Tue, 10 Jan 2012 16:00:18 +0100 Subject: Use SAL_N_ELEMENTS Some more like Thorstens diff 9c59cd15b150638c845bbc275b9b04460afc23bd Done with some regex magic (and a check if this var is an array): s/sizeof\(\s*$var\s*\)\s*\/\s*sizeof\(\s*\*$var\s*/SAL_N_ELEMENTS\($var/gs --- slideshow/test/demoshow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slideshow/test/demoshow.cxx') diff --git a/slideshow/test/demoshow.cxx b/slideshow/test/demoshow.cxx index f52ba553b260..692251edbeb0 100644 --- a/slideshow/test/demoshow.cxx +++ b/slideshow/test/demoshow.cxx @@ -278,7 +278,7 @@ private: }; static PropMapT aMap( lcl_propertyMap, - sizeof(lcl_propertyMap)/sizeof(*lcl_propertyMap), + SAL_N_ELEMENTS(lcl_propertyMap), true ); sal_Int16 aRes; -- cgit