diff options
Diffstat (limited to 'tools/assistant/docuparser.cpp')
-rw-r--r-- | tools/assistant/docuparser.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tools/assistant/docuparser.cpp b/tools/assistant/docuparser.cpp index c1077d154..8be590f32 100644 --- a/tools/assistant/docuparser.cpp +++ b/tools/assistant/docuparser.cpp @@ -70,7 +70,7 @@ DocuParser *DocuParser::createParser( const TQString &fileName ) int read = 0; int maxlen = 1024; int majVer = 0, minVer = 0, serVer = 0; - static TQRegExp re( "assistantconfig +version=\"(\\d)\\.(\\d)\\.(\\d)\"", FALSE ); + static TQRegExp re( "assistantconfig +version=\"(\\d)\\.(\\d)\\.(\\d)\"", false ); Q_ASSERT( re.isValid() ); while( read != -1 ) { read = file.readLine( str, maxlen ); @@ -144,7 +144,7 @@ bool DocuParser310::startDocument() contentList.clear(); indexList.clear(); - return TRUE; + return true; } @@ -169,8 +169,8 @@ bool DocuParser310::startElement( const TQString &, const TQString &, state = StateKeyword; indexRef = absolutify( attr.value( "ref" ) ); } else - return FALSE; - return TRUE; + return false; + return true; } bool DocuParser310::endElement( const TQString &nameSpace, const TQString &localName, @@ -189,7 +189,7 @@ bool DocuParser310::endElement( const TQString &nameSpace, const TQString &local state = StateSect; break; } - return TRUE; + return true; } @@ -197,21 +197,21 @@ bool DocuParser310::characters( const TQString& ch ) { TQString str = ch.simplifyWhiteSpace(); if ( str.isEmpty() ) - return TRUE; + return true; switch ( state ) { case StateInit: case StateContent: case StateSect: - return FALSE; + return false; break; case StateKeyword: indexList.append( new IndexItem( str, indexRef ) ); break; default: - return FALSE; + return false; } - return TRUE; + return true; } @@ -260,7 +260,7 @@ bool DocuParser320::startDocument() prof->addDCF( fname ); - return TRUE; + return true; } bool DocuParser320::startElement( const TQString &, const TQString &, @@ -316,7 +316,7 @@ bool DocuParser320::startElement( const TQString &, const TQString &, break; } - return TRUE; + return true; } bool DocuParser320::endElement( const TQString &nameSpace, @@ -335,7 +335,7 @@ bool DocuParser320::endElement( const TQString &nameSpace, case StateProperty: state = StateProfile; if( propertyName.isEmpty() || propertyValue.isEmpty() ) - return FALSE; + return false; { static const TQStringList lst = TQStringList() << "startpage" << "abouturl" << "applicationicon" << "assistantdocs"; @@ -347,7 +347,7 @@ bool DocuParser320::endElement( const TQString &nameSpace, case StateContent: if( !iconName.isEmpty() ) prof->addDCFIcon( docTitle, iconName ); if( contentRef.isEmpty() ) - return FALSE; + return false; prof->addDCFIndexPage( docTitle, conURL ); prof->addDCFTitle( fname, docTitle ); state = StateDocRoot; @@ -359,20 +359,20 @@ bool DocuParser320::endElement( const TQString &nameSpace, state = StateSect; break; } - return TRUE; + return true; } bool DocuParser320::characters( const TQString& ch ) { TQString str = ch.simplifyWhiteSpace(); if ( str.isEmpty() ) - return TRUE; + return true; switch ( state ) { case StateInit: case StateContent: case StateSect: - return FALSE; + return false; break; case StateKeyword: indexList.append( new IndexItem( str, indexRef ) ); @@ -381,9 +381,9 @@ bool DocuParser320::characters( const TQString& ch ) propertyValue = ch; break; default: - return FALSE; + return false; } - return TRUE; + return true; } bool DocuParser320::fatalError( const TQXmlParseException& exception ) |