summaryrefslogtreecommitdiff
path: root/svtools/source/svrtf
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-08 11:42:56 +0200
committerNoel Grandin <noel@peralex.com>2014-05-08 11:48:13 +0200
commitb7d30cb50ede0752f1ee194655f925c77e06879a (patch)
treee9f1369976e5130ee20704344371060b0637a29a /svtools/source/svrtf
parent2d54aa1d22f404a1a36aaa97d3e3bf5024e89aed (diff)
svtools: sal_Bool->bool
Change-Id: Idd9a3ccf0eb6d14cec158daa17a6b2da625f7ffa
Diffstat (limited to 'svtools/source/svrtf')
-rw-r--r--svtools/source/svrtf/svparser.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/svrtf/svparser.cxx b/svtools/source/svrtf/svparser.cxx
index 670b5b123faf..890060df069e 100644
--- a/svtools/source/svrtf/svparser.cxx
+++ b/svtools/source/svrtf/svparser.cxx
@@ -32,7 +32,7 @@ struct SvParser_Impl
sal_uLong nlLineNr; // actual line number
sal_uLong nlLinePos; // actual column number
long nTokenValue; // extra value (RTF)
- sal_Bool bTokenHasValue; // indicates whether nTokenValue is valid
+ bool bTokenHasValue; // indicates whether nTokenValue is valid
int nToken; // actual Token
sal_Unicode nNextCh; // actual character
int nSaveToken; // the token from Continue
@@ -154,11 +154,11 @@ sal_Unicode SvParser::GetNextChar()
// When reading muliple bytes, we don't have to care about the file
// position when we run inti the pending state. The file position is
// maintained by SaveState/RestoreState.
- sal_Bool bErr;
+ bool bErr;
if( bSwitchToUCS2 && 0 == rInput.Tell() )
{
unsigned char c1, c2;
- sal_Bool bSeekBack = sal_True;
+ bool bSeekBack = true;
rInput.ReadUChar( c1 );
bErr = rInput.IsEof() || rInput.GetError();
@@ -540,7 +540,7 @@ void SvParser::BuildWhichTbl( std::vector<sal_uInt16> &rWhichMap,
if( *pWhichIds )
{
aNewRange[0] = aNewRange[1] = *pWhichIds;
- sal_Bool bIns = sal_True;
+ bool bIns = true;
// search position
for ( sal_uInt16 nOfs = 0; rWhichMap[nOfs]; nOfs += 2 )
@@ -549,14 +549,14 @@ void SvParser::BuildWhichTbl( std::vector<sal_uInt16> &rWhichMap,
{
// new range before
rWhichMap.insert( rWhichMap.begin() + nOfs, aNewRange, aNewRange + 2 );
- bIns = sal_False;
+ bIns = false;
break;
}
else if( *pWhichIds == rWhichMap[nOfs] - 1 )
{
// extend range downwards
rWhichMap[nOfs] = *pWhichIds;
- bIns = sal_False;
+ bIns = false;
break;
}
else if( *pWhichIds == rWhichMap[nOfs+1] + 1 )
@@ -571,7 +571,7 @@ void SvParser::BuildWhichTbl( std::vector<sal_uInt16> &rWhichMap,
else
// extend range upwards
rWhichMap[nOfs+1] = *pWhichIds;
- bIns = sal_False;
+ bIns = false;
break;
}
}