summaryrefslogtreecommitdiffstats
path: root/starmath/source/format.cxx
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/source/format.cxx
parentFixed bug when deleting multiple lines (diff)
downloadcore-a93c9517dc52b1d9c22a0e69f9d92c119983f7fe.tar.gz
core-a93c9517dc52b1d9c22a0e69f9d92c119983f7fe.zip
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/source/format.cxx')
-rw-r--r--starmath/source/format.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/starmath/source/format.cxx b/starmath/source/format.cxx
index 1117da96421a..744ebb8061b7 100644
--- a/starmath/source/format.cxx
+++ b/starmath/source/format.cxx
@@ -115,7 +115,7 @@ SmFormat::SmFormat()
eHorAlign = AlignCenter;
nGreekCharStyle = 0;
- bIsTextmode = bScaleNormalBrackets = FALSE;
+ bIsTextmode = bScaleNormalBrackets = false;
vSize[SIZ_TEXT] = 100;
vSize[SIZ_INDEX] = 60;
@@ -170,18 +170,18 @@ SmFormat::SmFormat()
for ( USHORT i = FNT_BEGIN; i <= FNT_END; i++ )
{
SmFace &rFace = vFont[i];
- rFace.SetTransparent( TRUE );
+ rFace.SetTransparent( true );
rFace.SetAlign( ALIGN_BASELINE );
rFace.SetColor( COL_AUTO );
- bDefaultFont[i] = FALSE;
+ bDefaultFont[i] = false;
}
}
-void SmFormat::SetFont(USHORT nIdent, const SmFace &rFont, BOOL bDefault )
+void SmFormat::SetFont(USHORT nIdent, const SmFace &rFont, bool bDefault )
{
vFont[nIdent] = rFont;
- vFont[nIdent].SetTransparent( TRUE );
+ vFont[nIdent].SetTransparent( true );
vFont[nIdent].SetAlign( ALIGN_BASELINE );
bDefaultFont[nIdent] = bDefault;
@@ -211,9 +211,9 @@ SmFormat & SmFormat::operator = (const SmFormat &rFormat)
}
-BOOL SmFormat::operator == (const SmFormat &rFormat) const
+bool SmFormat::operator == (const SmFormat &rFormat) const
{
- BOOL bRes = aBaseSize == rFormat.aBaseSize &&
+ bool bRes = aBaseSize == rFormat.aBaseSize &&
eHorAlign == rFormat.eHorAlign &&
nGreekCharStyle == rFormat.nGreekCharStyle &&
bIsTextmode == rFormat.bIsTextmode &&
@@ -223,18 +223,18 @@ BOOL SmFormat::operator == (const SmFormat &rFormat) const
for (i = 0; i <= SIZ_END && bRes; ++i)
{
if (vSize[i] != rFormat.vSize[i])
- bRes = FALSE;
+ bRes = false;
}
for (i = 0; i <= DIS_END && bRes; ++i)
{
if (vDist[i] != rFormat.vDist[i])
- bRes = FALSE;
+ bRes = false;
}
for (i = 0; i <= FNT_END && bRes; ++i)
{
if (vFont[i] != rFormat.vFont[i] ||
bDefaultFont[i] != rFormat.bDefaultFont[i])
- bRes = FALSE;
+ bRes = false;
}
return bRes;