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
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,7 +95,6 @@ void SbiScanner::GenError( SbError code )
}
bAbort = bAbort || !bRes || ( code == SbERR_NO_MEMORY || code == SbERR_PROG_TOO_LARGE );
}
if( bErrors )
nErrors++;
}
......
......@@ -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
......
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