diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-14 21:08:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-14 21:09:47 +0100 |
commit | 20528cb2702d7044734ec1f4a9af40804bce1c0e (patch) | |
tree | 68a72c63d13bbe1ea7c339b31cf54b0efc45796d /formula/source | |
parent | eb0d268cdb71513b8ca36ce6582a06e34190c54d (diff) |
CID#736176 aArgInput is only 4 items, what's with the loop over 5 elements
Change-Id: I16983832e5d12ae55a3db448bcef2550b000d496
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/ui/dlg/parawin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/formula/source/ui/dlg/parawin.cxx b/formula/source/ui/dlg/parawin.cxx index 1b0a6dbf6989..c209c3761da8 100644 --- a/formula/source/ui/dlg/parawin.cxx +++ b/formula/source/ui/dlg/parawin.cxx @@ -513,7 +513,7 @@ IMPL_LINK( ParaWin, GetFxHdl, ArgInput*, pPtr ) { sal_uInt16 nOffset = GetSliderPos(); nEdFocus=NOT_FOUND; - for ( sal_uInt16 nPos=0; nPos<5;nPos++) + for (sal_uInt16 nPos=0; nPos < SAL_N_ELEMENTS(aArgInput); ++nPos) { if(pPtr == &aArgInput[nPos]) { @@ -535,7 +535,7 @@ IMPL_LINK( ParaWin, GetFxFocusHdl, ArgInput*, pPtr ) { sal_uInt16 nOffset = GetSliderPos(); nEdFocus=NOT_FOUND; - for ( sal_uInt16 nPos=0; nPos<5;nPos++) + for (sal_uInt16 nPos=0; nPos < SAL_N_ELEMENTS(aArgInput); ++nPos) { if(pPtr == &aArgInput[nPos]) { @@ -559,7 +559,7 @@ IMPL_LINK( ParaWin, GetEdFocusHdl, ArgInput*, pPtr ) { sal_uInt16 nOffset = GetSliderPos(); nEdFocus=NOT_FOUND; - for ( sal_uInt16 nPos=0; nPos<5;nPos++) + for (sal_uInt16 nPos=0; nPos < SAL_N_ELEMENTS(aArgInput); ++nPos) { if(pPtr == &aArgInput[nPos]) { @@ -591,7 +591,7 @@ IMPL_LINK( ParaWin, ModifyHdl, ArgInput*, pPtr ) { sal_uInt16 nOffset = GetSliderPos(); nEdFocus=NOT_FOUND; - for ( sal_uInt16 nPos=0; nPos<5;nPos++) + for (sal_uInt16 nPos=0; nPos < SAL_N_ELEMENTS(aArgInput); ++nPos) { if(pPtr == &aArgInput[nPos]) { |