summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2012-01-07 18:32:47 -0500
committerAugust Sodora <augsod@gmail.com>2012-01-07 18:33:32 -0500
commitd3a52bd7b3fe11fc6cf5f3296dd00eba524e40a0 (patch)
tree8d52555383f4f81cd7b3cda3cf19056dc57f1ca9 /basic
parent1e04280bce397f6c4c6715ab882fa9fd8f372c09 (diff)
scanner cleanup for consistency
Diffstat (limited to 'basic')
-rw-r--r--basic/source/comp/scanner.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx
index 7eb6fb07754f..25a493a08aa1 100644
--- a/basic/source/comp/scanner.cxx
+++ b/basic/source/comp/scanner.cxx
@@ -162,18 +162,18 @@ void SbiScanner::scanAlphanumeric()
void SbiScanner::scanGoto()
{
- sal_Int32 nTestCol = nCol;
- while(nTestCol < aLine.getLength() && theBasicCharClass::get().isWhitespace(aLine[nTestCol]))
- nTestCol++;
+ sal_Int32 n = nCol;
+ while(n < aLine.getLength() && theBasicCharClass::get().isWhitespace(aLine[n]))
+ ++n;
- if(nTestCol + 1 < aLine.getLength())
+ if(n + 1 < aLine.getLength())
{
- ::rtl::OUString aTestSym = aLine.copy(nTestCol, 2);
- if(aTestSym.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("to")))
+ ::rtl::OUString aTemp = aLine.copy(n, 2);
+ if(aTemp.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("to")))
{
aSym = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("goto"));
- pLine += nTestCol + 2 - nCol;
- nCol = nTestCol + 2;
+ pLine += n + 2 - nCol;
+ nCol = n + 2;
}
}
}