[Libreoffice-commits] .: sc/source

Michael Meeks mmeeks at kemper.freedesktop.org
Sat Oct 16 12:57:42 PDT 2010


 sc/source/ui/vba/vbapagesetup.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 92fe008acb59d600d674dd06c0e91869bb9c718f
Author: Kenneth Venken <kenneth.venken at gmail.com>
Date:   Sat Oct 16 20:56:56 2010 +0100

    some patches that replace sizeof(a)/sizeof(a[0]) with SAL_N_ELEMENTS(a)

diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx
index 3b1a8ae..c80e407 100644
--- a/sc/source/ui/vba/vbapagesetup.cxx
+++ b/sc/source/ui/vba/vbapagesetup.cxx
@@ -41,6 +41,7 @@
 #include <i18npool/paper.hxx>
 #include <editeng/paperinf.hxx>
 #include <ooo/vba/excel/XlPaperSize.hpp>
+#include <sal/macros.h>
 
 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)
 {


More information about the Libreoffice-commits mailing list