From 35a5521b07870c9aef965e53a8d7dcda061ba88f Mon Sep 17 00:00:00 2001 From: Kenneth Venken Date: Sat, 16 Oct 2010 20:56:56 +0100 Subject: [PATCH] some patches that replace sizeof(a)/sizeof(a[0]) with SAL_N_ELEMENTS(a) --- sc/source/ui/vba/vbapagesetup.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx index 3b1a8ae9a3cd..c80e407fb532 100644 --- a/sc/source/ui/vba/vbapagesetup.cxx +++ b/sc/source/ui/vba/vbapagesetup.cxx @@ -41,6 +41,7 @@ #include #include #include +#include using namespace ::com::sun::star; using namespace ::ooo::vba; @@ -665,7 +666,7 @@ static PaperSizeMap paperSizeMappings[] = { PAPER_ENV_12, ooo::vba::excel::XlPaperSize::xlPaperEnvelope12 } }; -static const int nMapSize = sizeof(paperSizeMappings) / sizeof(paperSizeMappings[0]); +static const int nMapSize = SAL_N_ELEMENTS(paperSizeMappings); sal_Int32 PaperSizeOOoToExcel(Paper ePaper) {