diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-12-03 13:59:12 +0000 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2010-12-03 13:59:12 +0000 |
commit | f8e081876fa321cbf6072472ef5b5ee0aa050260 (patch) | |
tree | d5ed7d15a5116d3aa23833fd8e8e2aa03889cd1d /scaddins/source/analysis/analysishelper.cxx | |
parent | e057b44e97769763c7284ac784081706c8d76b92 (diff) |
more Sal n elements
Diffstat (limited to 'scaddins/source/analysis/analysishelper.cxx')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 5 |
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 ) ); } |