summaryrefslogtreecommitdiff
path: root/scaddins/source/datefunc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-09 13:22:38 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-10 06:29:32 +0000
commitf469309e265b8cf692b2048eb29ce972f939c3f2 (patch)
treebf288ce36281a0222a9dc1271f65640a4f264c84 /scaddins/source/datefunc
parent65b327b873e67ae24133b6e4afef5e8a12ed822e (diff)
clang-tidy modernize-loop-convert scaddins to sdext
Change-Id: I63ccc56df1a1de8bc443abb95e520246c457912f Reviewed-on: https://gerrit.libreoffice.org/24798 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'scaddins/source/datefunc')
-rw-r--r--scaddins/source/datefunc/datefunc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx
index 9cd1fe70a645..cd9b3b005718 100644
--- a/scaddins/source/datefunc/datefunc.cxx
+++ b/scaddins/source/datefunc/datefunc.cxx
@@ -95,8 +95,8 @@ sal_uInt16 ScaFuncData::GetStrIndex( sal_uInt16 nParam ) const
void InitScaFuncDataList( ScaFuncDataList& rList, ResMgr& rResMgr )
{
- for( sal_uInt16 nIndex = 0; nIndex < SAL_N_ELEMENTS(pFuncDataArr); nIndex++ )
- rList.push_back( ScaFuncData( pFuncDataArr[ nIndex ], rResMgr ) );
+ for(const auto & nIndex : pFuncDataArr)
+ rList.push_back( ScaFuncData( nIndex, rResMgr ) );
}
ScaFuncRes::ScaFuncRes( ResId& rResId, ResMgr& rResMgr, sal_uInt16 nIndex, OUString& rRet ) :