summaryrefslogtreecommitdiff
path: root/starmath/inc/parse.hxx
diff options
context:
space:
mode:
authorAlexandre Fournier <fou@leila.(none)>2010-11-06 01:33:05 +0100
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-11-06 18:21:27 -0500
commita93c9517dc52b1d9c22a0e69f9d92c119983f7fe (patch)
tree10d0f65563b4c93e9532ad2b2e351f60022a17c4 /starmath/inc/parse.hxx
parentc27759cbf40a99632112cf2e2d21d64f2d3ae749 (diff)
Removes a fair amount of BOOL variables in starmath
I uses the native bool type instead. Some signatures containing BOOL have been left untouched when belonging to an inheritance hierarchy beyond the scope of starmath
Diffstat (limited to 'starmath/inc/parse.hxx')
-rw-r--r--starmath/inc/parse.hxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx
index 5018340b5a01..8e85f4dfc32d 100644
--- a/starmath/inc/parse.hxx
+++ b/starmath/inc/parse.hxx
@@ -195,7 +195,7 @@ class SmParser
USHORT Row,
ColOff;
SmConvert eConversion;
- BOOL bImportSymNames,
+ bool bImportSymNames,
bExportSymNames;
// declare copy-constructor and assignment-operator private
@@ -204,14 +204,14 @@ class SmParser
protected:
#if OSL_DEBUG_LEVEL
- BOOL IsDelimiter( const String &rTxt, xub_StrLen nPos );
+ bool IsDelimiter( const String &rTxt, xub_StrLen nPos );
#endif
void NextToken();
xub_StrLen GetTokenIndex() const { return nTokenIndex; }
void Insert(const String &rText, USHORT nPos);
void Replace( USHORT nPos, USHORT nLen, const String &rText );
- inline BOOL TokenInGroup(ULONG nGroup);
+ inline bool TokenInGroup(ULONG nGroup);
// grammar
void Table();
@@ -236,7 +236,7 @@ protected:
void FontSize();
void Color();
void Brace();
- void Bracebody(BOOL bIsLeftRight);
+ void Bracebody(bool bIsLeftRight);
void Function();
void Binom();
void Stack();
@@ -263,10 +263,10 @@ public:
SmConvert GetConversion() const { return eConversion; }
void SetConversion(SmConvert eConv) { eConversion = eConv; }
- BOOL IsImportSymbolNames() const { return bImportSymNames; }
- void SetImportSymbolNames(BOOL bVal) { bImportSymNames = bVal; }
- BOOL IsExportSymbolNames() const { return bExportSymNames; }
- void SetExportSymbolNames(BOOL bVal) { bExportSymNames = bVal; }
+ bool IsImportSymbolNames() const { return bImportSymNames; }
+ void SetImportSymbolNames(bool bVal) { bImportSymNames = bVal; }
+ bool IsExportSymbolNames() const { return bExportSymNames; }
+ void SetExportSymbolNames(bool bVal) { bExportSymNames = bVal; }
USHORT AddError(SmParseError Type, SmNode *pNode);
@@ -277,9 +277,9 @@ public:
};
-inline BOOL SmParser::TokenInGroup(ULONG nGroup)
+inline bool SmParser::TokenInGroup(ULONG nGroup)
{
- return (CurToken.nGroup & nGroup) ? TRUE : FALSE;
+ return (CurToken.nGroup & nGroup) ? true : false;
}