Kaydet (Commit) 424c7fb6 authored tarafından Caolán McNamara's avatar Caolán McNamara

we don't need ree after the loop here

Change-Id: Ib288ab3a7abf8f45c1175c36dcd4349dc4ad019f
üst aa70294f
...@@ -1617,11 +1617,10 @@ namespace accessibility ...@@ -1617,11 +1617,10 @@ namespace accessibility
SvxAccessibleTextAdapter& rCacheTF = GetTextForwarder(); SvxAccessibleTextAdapter& rCacheTF = GetTextForwarder();
sal_Int32 nAllFieldLen = 0; sal_Int32 nAllFieldLen = 0;
sal_Int32 nField = rCacheTF.GetFieldCount(nParaIndex), nFoundFieldIndex = -1; sal_Int32 nField = rCacheTF.GetFieldCount(nParaIndex), nFoundFieldIndex = -1;
EFieldInfo ree;
sal_Int32 reeBegin=0, reeEnd=0; sal_Int32 reeBegin=0, reeEnd=0;
for (sal_Int32 j = 0; j < nField; j++) for (sal_Int32 j = 0; j < nField; ++j)
{ {
ree = rCacheTF.GetFieldInfo(nParaIndex, j); EFieldInfo ree = rCacheTF.GetFieldInfo(nParaIndex, j);
reeBegin = ree.aPosition.nIndex + nAllFieldLen; reeBegin = ree.aPosition.nIndex + nAllFieldLen;
reeEnd = reeBegin + ree.aCurrentText.getLength(); reeEnd = reeBegin + ree.aCurrentText.getLength();
nAllFieldLen += (ree.aCurrentText.getLength() - 1); nAllFieldLen += (ree.aCurrentText.getLength() - 1);
...@@ -1655,11 +1654,10 @@ namespace accessibility ...@@ -1655,11 +1654,10 @@ namespace accessibility
SvxAccessibleTextAdapter& rCacheTF = GetTextForwarder(); SvxAccessibleTextAdapter& rCacheTF = GetTextForwarder();
sal_Int32 nAllFieldLen = 0; sal_Int32 nAllFieldLen = 0;
sal_Int32 nField = rCacheTF.GetFieldCount(nParaIndex), nFoundFieldIndex = -1; sal_Int32 nField = rCacheTF.GetFieldCount(nParaIndex), nFoundFieldIndex = -1;
EFieldInfo ree;
sal_Int32 reeBegin=0, reeEnd=0; sal_Int32 reeBegin=0, reeEnd=0;
for (sal_Int32 j = 0; j < nField; j++) for (sal_Int32 j = 0; j < nField; ++j)
{ {
ree = rCacheTF.GetFieldInfo(nParaIndex, j); EFieldInfo ree = rCacheTF.GetFieldInfo(nParaIndex, j);
reeBegin = ree.aPosition.nIndex + nAllFieldLen; reeBegin = ree.aPosition.nIndex + nAllFieldLen;
reeEnd = reeBegin + ree.aCurrentText.getLength(); reeEnd = reeBegin + ree.aCurrentText.getLength();
nAllFieldLen += (ree.aCurrentText.getLength() - 1); nAllFieldLen += (ree.aCurrentText.getLength() - 1);
......
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