summaryrefslogtreecommitdiff
path: root/basic/source/comp/scanner.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-04 13:56:13 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 11:21:25 +0200
commite9c4ee996d5a6bf895072613ac4e488346ee5b05 (patch)
treed2137ca122fea2aca4fbcf950577fb650bb4852e /basic/source/comp/scanner.cxx
parent03995a6beaaabee40ec8ae718fad309238ca446f (diff)
remove unnecessary use of OUString constructor in BASIC module
Change-Id: Iee86ce9200285647d5031cb2f89266a52704dd44
Diffstat (limited to 'basic/source/comp/scanner.cxx')
-rw-r--r--basic/source/comp/scanner.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx
index 3609765b3630..fd6ff11d9565 100644
--- a/basic/source/comp/scanner.cxx
+++ b/basic/source/comp/scanner.cxx
@@ -160,7 +160,7 @@ void SbiScanner::scanGoto()
OUString aTemp = aLine.copy(n, 2);
if(aTemp.equalsIgnoreAsciiCase("to"))
{
- aSym = OUString("goto");
+ aSym = "goto";
pLine += n + 2 - nCol;
nCol = n + 2;
}
@@ -210,7 +210,7 @@ bool SbiScanner::NextSym()
sal_Unicode buf[ BUF_SIZE ], *p = buf;
eScanType = SbxVARIANT;
- aSym = OUString();
+ aSym = "";
bHash = bSymbol = bNumber = bSpaces = false;
// read in line?
@@ -433,7 +433,7 @@ bool SbiScanner::NextSym()
default :
// treated as an operator
--pLine; --nCol; nCol1 = nCol-1;
- aSym = OUString("&");
+ aSym = "&";
return true;
}
bNumber = true;
@@ -537,7 +537,7 @@ PrevLineCommentLbl:
( aSym.startsWith("'") || aSym.equalsIgnoreAsciiCase( "REM" ) ) ) )
{
bPrevLineExtentsComment = false;
- aSym = OUString("REM");
+ aSym = "REM";
sal_Int32 nLen = rtl_ustr_getLength(pLine);
if( bCompatible && pLine[ nLen - 1 ] == '_' && pLine[ nLen - 2 ] == ' ' )
bPrevLineExtentsComment = true;
@@ -568,7 +568,7 @@ eoln:
nLine = nOldLine;
nCol1 = nOldCol1;
nCol2 = nOldCol2;
- aSym = OUString("\n");
+ aSym = "\n";
nColLock = 0;
return true;
}