diff options
author | Kayo Hamid <revol.code@yahoo.com> | 2010-10-09 22:17:25 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-09 22:17:25 -0500 |
commit | d7f4b5a0fc1033b314b59e8b20efc6a06b1f8049 (patch) | |
tree | 7e50a26a7c8197db131c99af0723445de61f0c2d /reportdesign/source/filter/xml/xmlExport.cxx | |
parent | fa482813b4fadcde61410e8981fa011985c8b4c1 (diff) |
Use SAL_N_ELEMENTS macro
Diffstat (limited to 'reportdesign/source/filter/xml/xmlExport.cxx')
-rw-r--r-- | reportdesign/source/filter/xml/xmlExport.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx index 2c946d5280da..7b797f644b47 100644 --- a/reportdesign/source/filter/xml/xmlExport.cxx +++ b/reportdesign/source/filter/xml/xmlExport.cxx @@ -64,6 +64,7 @@ // for locking SolarMutex: svapp + mutex #include <vcl/svapp.hxx> #include <vos/mutex.hxx> +#include <sal/macros.h> #include <boost/bind.hpp> @@ -1643,7 +1644,7 @@ void ORptExport::exportGroupsExpressionAsFunction(const Reference< XGroups>& _xG if ( sFunction.getLength() ) { sal_Unicode pReplaceChars[] = { '(',')',';',',','+','-','[',']','/','*'}; - for(sal_uInt32 j= 0; j < sizeof(pReplaceChars)/sizeof(pReplaceChars[0]);++j) + for(sal_uInt32 j= 0; j < SAL_N_ELEMENTS(pReplaceChars);++j) sFunctionName = sFunctionName.replace(pReplaceChars[j],'_'); xFunction->setName(sFunctionName); |