summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 17:09:01 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:11:53 +0100
commite7a86f2d68adb40807deba29a57792a2e3d1f319 (patch)
tree0469ab62ed7bfb46eb93d04e057ba68fe2f3f8e6 /svtools/source
parent680a5290a0c7c1caf85641251a40664247e83129 (diff)
Use bool
Change-Id: I2f1c543b106e24ff49f876dbb3d8e94f4ebf03ba
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/svhtml/parhtml.cxx16
-rw-r--r--svtools/source/svrtf/parrtf.cxx8
2 files changed, 12 insertions, 12 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 9cda95d22ca3..b8076fe836ef 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -421,13 +421,13 @@ int HTMLParser::FilterToken( int nToken )
int HTMLParser::ScanText( const sal_Unicode cBreak )
{
OUStringBuffer sTmpBuffer( MAX_LEN );
- int bContinue = true;
- int bEqSignFound = false;
+ bool bContinue = true;
+ bool bEqSignFound = false;
sal_Unicode cQuote = 0U;
while( bContinue && IsParserWorking() )
{
- int bNextCh = true;
+ bool bNextCh = true;
switch( nNextCh )
{
case '&':
@@ -844,12 +844,12 @@ int HTMLParser::_GetNextRawToken()
}
// Default return value: HTML_RAWDATA
- int bContinue = true;
+ bool bContinue = true;
int nToken = HTML_RAWDATA;
SaveState( 0 );
while( bContinue && IsParserWorking() )
{
- int bNextCh = true;
+ bool bNextCh = true;
switch( nNextCh )
{
case '<':
@@ -865,7 +865,7 @@ int HTMLParser::_GetNextRawToken()
sal_uLong nLinePos = GetLinePos();
// Start of an end token?
- int bOffState = false;
+ bool bOffState = false;
if( '/' == (nNextCh = GetNextChar()) )
{
bOffState = true;
@@ -1089,7 +1089,7 @@ int HTMLParser::_GetNextToken()
}
do {
- int bNextCh = true;
+ bool bNextCh = true;
switch( nNextCh )
{
case '<':
@@ -1098,7 +1098,7 @@ int HTMLParser::_GetNextToken()
sal_uLong nLineNr = GetLineNr();
sal_uLong nLinePos = GetLinePos();
- int bOffState = false;
+ bool bOffState = false;
if( '/' == (nNextCh = GetNextChar()) )
{
bOffState = true;
diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx
index 1c28b78638f9..4e0f9714a463 100644
--- a/svtools/source/svrtf/parrtf.cxx
+++ b/svtools/source/svrtf/parrtf.cxx
@@ -54,7 +54,7 @@ int SvRTFParser::_GetNextToken()
{
int nRet = 0;
do {
- int bNextCh = true;
+ bool bNextCh = true;
switch( nNextCh )
{
case '\\':
@@ -116,7 +116,7 @@ int SvRTFParser::_GetNextToken()
}
// minus before numeric parameters
- int bNegValue = false;
+ bool bNegValue = false;
if( '-' == nNextCh )
{
bNegValue = true;
@@ -304,10 +304,10 @@ sal_Unicode SvRTFParser::GetHexValue()
void SvRTFParser::ScanText( const sal_Unicode cBreak )
{
OUStringBuffer aStrBuffer;
- int bContinue = true;
+ bool bContinue = true;
while( bContinue && IsParserWorking() && aStrBuffer.getLength() < MAX_STRING_LEN)
{
- int bNextCh = true;
+ bool bNextCh = true;
switch( nNextCh )
{
case '\\':