Kaydet (Commit) 20528cb2 authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#736176 aArgInput is only 4 items, what's with the loop over 5 elements

Change-Id: I16983832e5d12ae55a3db448bcef2550b000d496
üst eb0d268c
...@@ -513,7 +513,7 @@ IMPL_LINK( ParaWin, GetFxHdl, ArgInput*, pPtr ) ...@@ -513,7 +513,7 @@ IMPL_LINK( ParaWin, GetFxHdl, ArgInput*, pPtr )
{ {
sal_uInt16 nOffset = GetSliderPos(); sal_uInt16 nOffset = GetSliderPos();
nEdFocus=NOT_FOUND; 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]) if(pPtr == &aArgInput[nPos])
{ {
...@@ -535,7 +535,7 @@ IMPL_LINK( ParaWin, GetFxFocusHdl, ArgInput*, pPtr ) ...@@ -535,7 +535,7 @@ IMPL_LINK( ParaWin, GetFxFocusHdl, ArgInput*, pPtr )
{ {
sal_uInt16 nOffset = GetSliderPos(); sal_uInt16 nOffset = GetSliderPos();
nEdFocus=NOT_FOUND; 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]) if(pPtr == &aArgInput[nPos])
{ {
...@@ -559,7 +559,7 @@ IMPL_LINK( ParaWin, GetEdFocusHdl, ArgInput*, pPtr ) ...@@ -559,7 +559,7 @@ IMPL_LINK( ParaWin, GetEdFocusHdl, ArgInput*, pPtr )
{ {
sal_uInt16 nOffset = GetSliderPos(); sal_uInt16 nOffset = GetSliderPos();
nEdFocus=NOT_FOUND; 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]) if(pPtr == &aArgInput[nPos])
{ {
...@@ -591,7 +591,7 @@ IMPL_LINK( ParaWin, ModifyHdl, ArgInput*, pPtr ) ...@@ -591,7 +591,7 @@ IMPL_LINK( ParaWin, ModifyHdl, ArgInput*, pPtr )
{ {
sal_uInt16 nOffset = GetSliderPos(); sal_uInt16 nOffset = GetSliderPos();
nEdFocus=NOT_FOUND; 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]) if(pPtr == &aArgInput[nPos])
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment