diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-08-12 09:15:56 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-08-12 09:16:59 +0900 |
commit | 533194a6b39fd7e7bb2359c75ce242dc65f97f12 (patch) | |
tree | ff7f178af57d4f3efb9cf58b6926a5e3bbaa8e98 /basic/source | |
parent | 1817cf60d1d5461b57b9b6fdb0b2849bb29389a8 (diff) |
bErrors was always true
Change-Id: I193029e1fb2434161679498fa0ba7e1c7c0ab3ba
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/comp/scanner.cxx | 8 | ||||
-rw-r--r-- | basic/source/inc/scanner.hxx | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/basic/source/comp/scanner.cxx b/basic/source/comp/scanner.cxx index eefa3aba2b55..87265e7839e2 100644 --- a/basic/source/comp/scanner.cxx +++ b/basic/source/comp/scanner.cxx @@ -46,8 +46,7 @@ SbiScanner::SbiScanner( const ::rtl::OUString& rBuf, StarBASIC* p ) : aBuf( rBuf bVBASupportOn = bInStatement = bPrevLineExtentsComment = false; - bHash = - bErrors = true; + bHash = true; } SbiScanner::~SbiScanner() @@ -72,7 +71,7 @@ void SbiScanner::GenError( SbError code ) bAbort = true; return; } - if( !bError && bErrors ) + if( !bError ) { bool bRes = true; // report only one error per statement @@ -96,8 +95,7 @@ void SbiScanner::GenError( SbError code ) } bAbort = bAbort || !bRes || ( code == SbERR_NO_MEMORY || code == SbERR_PROG_TOO_LARGE ); } - if( bErrors ) - nErrors++; + nErrors++; } diff --git a/basic/source/inc/scanner.hxx b/basic/source/inc/scanner.hxx index 0697b10f5737..79a98f5c524d 100644 --- a/basic/source/inc/scanner.hxx +++ b/basic/source/inc/scanner.hxx @@ -56,7 +56,6 @@ protected: bool bSymbol; // true: symbol scanned bool bNumber; // true: number scanned bool bSpaces; // true: whitespace before token - bool bErrors; // true: generate errors bool bAbort; bool bHash; // true: # has been read in bool bError; // true: generate error |