Kaydet (Commit) 533194a6 authored tarafından Takeshi Abe's avatar Takeshi Abe

bErrors was always true

Change-Id: I193029e1fb2434161679498fa0ba7e1c7c0ab3ba
üst 1817cf60
...@@ -46,8 +46,7 @@ SbiScanner::SbiScanner( const ::rtl::OUString& rBuf, StarBASIC* p ) : aBuf( rBuf ...@@ -46,8 +46,7 @@ SbiScanner::SbiScanner( const ::rtl::OUString& rBuf, StarBASIC* p ) : aBuf( rBuf
bVBASupportOn = bVBASupportOn =
bInStatement = bInStatement =
bPrevLineExtentsComment = false; bPrevLineExtentsComment = false;
bHash = bHash = true;
bErrors = true;
} }
SbiScanner::~SbiScanner() SbiScanner::~SbiScanner()
...@@ -72,7 +71,7 @@ void SbiScanner::GenError( SbError code ) ...@@ -72,7 +71,7 @@ void SbiScanner::GenError( SbError code )
bAbort = true; bAbort = true;
return; return;
} }
if( !bError && bErrors ) if( !bError )
{ {
bool bRes = true; bool bRes = true;
// report only one error per statement // report only one error per statement
...@@ -96,8 +95,7 @@ void SbiScanner::GenError( SbError code ) ...@@ -96,8 +95,7 @@ void SbiScanner::GenError( SbError code )
} }
bAbort = bAbort || !bRes || ( code == SbERR_NO_MEMORY || code == SbERR_PROG_TOO_LARGE ); bAbort = bAbort || !bRes || ( code == SbERR_NO_MEMORY || code == SbERR_PROG_TOO_LARGE );
} }
if( bErrors ) nErrors++;
nErrors++;
} }
......
...@@ -56,7 +56,6 @@ protected: ...@@ -56,7 +56,6 @@ protected:
bool bSymbol; // true: symbol scanned bool bSymbol; // true: symbol scanned
bool bNumber; // true: number scanned bool bNumber; // true: number scanned
bool bSpaces; // true: whitespace before token bool bSpaces; // true: whitespace before token
bool bErrors; // true: generate errors
bool bAbort; bool bAbort;
bool bHash; // true: # has been read in bool bHash; // true: # has been read in
bool bError; // true: generate error bool bError; // true: generate error
......
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