diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-08-22 19:20:19 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-08-22 19:25:08 +0900 |
commit | 407509c058c44182859e90a89a6ddb2b28edc053 (patch) | |
tree | 6e6108f4195eb28bf7ebad4db16e67ef5efd1b6a /basic/source/inc/token.hxx | |
parent | Remove dead code (diff) | |
download | core-407509c058c44182859e90a89a6ddb2b28edc053.tar.gz core-407509c058c44182859e90a89a6ddb2b28edc053.zip |
sal_Bool to bool
Change-Id: I75dd089b34c94831bfdfd0e02585af7609013a08
Diffstat (limited to 'basic/source/inc/token.hxx')
-rw-r--r-- | basic/source/inc/token.hxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/basic/source/inc/token.hxx b/basic/source/inc/token.hxx index b48e78428b8c..7890ef3d7fde 100644 --- a/basic/source/inc/token.hxx +++ b/basic/source/inc/token.hxx @@ -133,36 +133,36 @@ protected: SbiToken eCurTok; SbiToken ePush; sal_uInt16 nPLine, nPCol1, nPCol2; // pushback location - sal_Bool bEof; - sal_Bool bEos; - sal_Bool bKeywords; // sal_True, if keywords are parsed - sal_Bool bAs; // last keyword was AS - sal_Bool bErrorIsSymbol; // Handle Error token as Symbol, not keyword + bool bEof; + bool bEos; + bool bKeywords; // true, if keywords are parsed + bool bAs; // last keyword was AS + bool bErrorIsSymbol; // Handle Error token as Symbol, not keyword public: SbiTokenizer( const ::rtl::OUString&, StarBASIC* = NULL ); ~SbiTokenizer(); - inline sal_Bool IsEof() { return bEof; } - inline sal_Bool IsEos() { return bEos; } + inline bool IsEof() { return bEof; } + inline bool IsEos() { return bEos; } void Push( SbiToken ); const ::rtl::OUString& Symbol( SbiToken ); // reconversion SbiToken Peek(); // read the next token SbiToken Next(); // read a token - sal_Bool MayBeLabel( sal_Bool= sal_False ); + bool MayBeLabel( bool= false ); void Error( SbError c ) { GenError( c ); } void Error( SbError, SbiToken ); void Error( SbError, const char* ); void Error( SbError, const ::rtl::OUString &); - static sal_Bool IsEoln( SbiToken t ) - { return sal_Bool( t == EOS || t == EOLN || t == REM ); } - static sal_Bool IsKwd( SbiToken t ) - { return sal_Bool( t >= FIRSTKWD && t <= LASTKWD ); } - static sal_Bool IsExtra( SbiToken t ) - { return sal_Bool( t >= FIRSTEXTRA ); } + static bool IsEoln( SbiToken t ) + { return t == EOS || t == EOLN || t == REM; } + static bool IsKwd( SbiToken t ) + { return t >= FIRSTKWD && t <= LASTKWD; } + static bool IsExtra( SbiToken t ) + { return t >= FIRSTEXTRA; } }; |