summaryrefslogtreecommitdiff
path: root/basic/source/comp/parser.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-08-20 09:44:32 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-08-20 09:47:25 +0900
commita8647dd0301c179b25aa819d3479e04ea672fd8f (patch)
treebc67eeae5da8eee489e8ebf046d8e765d746472c /basic/source/comp/parser.cxx
parent32dafb7494ec3b7023c5f71ec1d921c1c7e074c2 (diff)
sal_Bool to bool
Change-Id: I427e9bb30cab4698a2495de7445a4a4982abd7b4
Diffstat (limited to 'basic/source/comp/parser.cxx')
-rw-r--r--basic/source/comp/parser.cxx42
1 files changed, 21 insertions, 21 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx
index 470f239be5f7..f6421823287f 100644
--- a/basic/source/comp/parser.cxx
+++ b/basic/source/comp/parser.cxx
@@ -242,49 +242,49 @@ void SbiParser::Exit()
Error( SbERR_BAD_EXIT );
}
-sal_Bool SbiParser::TestSymbol( sal_Bool bKwdOk )
+bool SbiParser::TestSymbol( bool bKwdOk )
{
Peek();
if( eCurTok == SYMBOL || ( bKwdOk && IsKwd( eCurTok ) ) )
{
- Next(); return sal_True;
+ Next(); return true;
}
Error( SbERR_SYMBOL_EXPECTED );
- return sal_False;
+ return false;
}
-sal_Bool SbiParser::TestToken( SbiToken t )
+bool SbiParser::TestToken( SbiToken t )
{
if( Peek() == t )
{
- Next(); return sal_True;
+ Next(); return true;
}
else
{
Error( SbERR_EXPECTED, t );
- return sal_False;
+ return false;
}
}
-sal_Bool SbiParser::TestComma()
+bool SbiParser::TestComma()
{
SbiToken eTok = Peek();
if( IsEoln( eTok ) )
{
Next();
- return sal_False;
+ return false;
}
else if( eTok != COMMA )
{
Error( SbERR_EXPECTED, COMMA );
- return sal_False;
+ return false;
}
Next();
- return sal_True;
+ return true;
}
@@ -315,9 +315,9 @@ void SbiParser::StmntBlock( SbiToken eEnd )
-sal_Bool SbiParser::Parse()
+bool SbiParser::Parse()
{
- if( bAbort ) return sal_False;
+ if( bAbort ) return false;
EnableErrors();
@@ -333,13 +333,13 @@ sal_Bool SbiParser::Parse()
// can be another nGblChain, so ask for it before.
if( bNewGblDefs && nGblChain == 0 )
nGblChain = aGen.Gen( _JUMP, 0 );
- return sal_False;
+ return false;
}
if( IsEoln( eCurTok ) )
{
- Next(); return sal_True;
+ Next(); return true;
}
if( !bSingleLineIf && MayBeLabel( sal_True ) )
@@ -353,7 +353,7 @@ sal_Bool SbiParser::Parse()
if( IsEoln( eCurTok ) )
{
- Next(); return sal_True;
+ Next(); return true;
}
}
@@ -366,13 +366,13 @@ sal_Bool SbiParser::Parse()
Next();
if( eCurTok != NIL )
aGen.Statement();
- return sal_False;
+ return false;
}
// comment?
if( eCurTok == REM )
{
- Next(); return sal_True;
+ Next(); return true;
}
// In vba it's possible to do Error.foobar ( even if it results in
@@ -458,7 +458,7 @@ sal_Bool SbiParser::Parse()
}
// The parser aborts at the end, the
// next token has not been fetched yet!
- return sal_True;
+ return true;
}
@@ -772,9 +772,9 @@ void SbiParser::Option()
{
SbiToken eTok = Next();
if( eTok == BINARY )
- bText = sal_False;
+ bText = false;
else if( eTok == SYMBOL && GetSym().equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("text")) )
- bText = sal_True;
+ bText = true;
else
Error( SbERR_EXPECTED, "Text/Binary" );
break;
@@ -784,7 +784,7 @@ void SbiParser::Option()
break;
case CLASSMODULE:
- bClassModule = sal_True;
+ bClassModule = true;
aGen.GetModule().SetModuleType( com::sun::star::script::ModuleType::CLASS );
break;
case VBASUPPORT: // Option VBASupport used to override the module mode ( in fact this must reset the mode