summaryrefslogtreecommitdiff
path: root/scaddins/source/analysis/analysishelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scaddins/source/analysis/analysishelper.cxx')
-rw-r--r--scaddins/source/analysis/analysishelper.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 4f0711678a03..c2e61f567157 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <tools/resary.hxx>
#include <rtl/math.hxx>
+#include <sal/macros.h>
#include "analysishelper.hxx"
#include "analysis.hrc"
@@ -1413,9 +1414,7 @@ sal_uInt16 FuncData::GetStrIndex( sal_uInt16 nParamNum ) const
FuncDataList::FuncDataList( ResMgr& rResMgr )
{
- const sal_uInt32 nNum = sizeof( pFuncDatas ) / sizeof( FuncDataBase );
-
- for( sal_uInt16 n = 0 ; n < nNum ; n++ )
+ for( sal_uInt16 n = 0 ; n < SAL_N_ELEMENTS(pFuncDatas) ; n++ )
Append( new FuncData( pFuncDatas[ n ], rResMgr ) );
}