diff options
Diffstat (limited to 'tools/linguist/lupdate/fetchtr.cpp')
| -rw-r--r-- | tools/linguist/lupdate/fetchtr.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tools/linguist/lupdate/fetchtr.cpp b/tools/linguist/lupdate/fetchtr.cpp index c5ed953b0..80ec37094 100644 --- a/tools/linguist/lupdate/fetchtr.cpp +++ b/tools/linguist/lupdate/fetchtr.cpp @@ -275,8 +275,8 @@ static int getToken() yyCh = getChar(); } while ( yyCh != EOF && yyCh != '\n' ); } else if ( yyCh == '*' ) { - bool metAster = FALSE; - bool metAsterSlash = FALSE; + bool metAster = false; + bool metAsterSlash = false; while ( !metAsterSlash ) { yyCh = getChar(); @@ -292,11 +292,11 @@ static int getToken() yyComment[yyCommentLen++] = (char) yyCh; if ( yyCh == '*' ) - metAster = TRUE; + metAster = true; else if ( metAster && yyCh == '/' ) - metAsterSlash = TRUE; + metAsterSlash = true; else - metAster = FALSE; + metAster = false; } yyCh = getChar(); yyCommentLen -= 2; @@ -463,9 +463,9 @@ static bool matchEncoding( bool *utf8 ) } *utf8 = TQString( yyIdent ).endsWith( TQString("UTF8") ); yyTok = getToken(); - return TRUE; + return true; } else { - return FALSE; + return false; } } @@ -479,8 +479,8 @@ static void parse( MetaTranslator *tor, const char *initialContext, TQCString com; TQCString functionContext = initialContext; TQCString prefix; - bool utf8 = FALSE; - bool missing_TQ_OBJECT = FALSE; + bool utf8 = false; + bool missing_TQ_OBJECT = false; yyTok = getToken(); while ( yyTok != Tok_Eof ) { @@ -511,7 +511,7 @@ static void parse( MetaTranslator *tor, const char *initialContext, } if ( yyTok == Tok_Colon ) { - missing_TQ_OBJECT = TRUE; + missing_TQ_OBJECT = true; } else { functionContext = defaultContext; } @@ -562,7 +562,7 @@ static void parse( MetaTranslator *tor, const char *initialContext, } break; case Tok_translate: - utf8 = FALSE; + utf8 = false; yyTok = getToken(); if ( match(Tok_LeftParen) && matchString(&context) && @@ -581,7 +581,7 @@ static void parse( MetaTranslator *tor, const char *initialContext, } break; case Tok_TQ_OBJECT: - missing_TQ_OBJECT = FALSE; + missing_TQ_OBJECT = false; yyTok = getToken(); break; case Tok_Ident: @@ -604,7 +604,7 @@ static void parse( MetaTranslator *tor, const char *initialContext, context = com.left( k ); com.remove( 0, k + 1 ); tor->insert( MetaTranslatorMessage(context, "", com, - TQString::null, FALSE) ); + TQString::null, false) ); } /* @@ -647,7 +647,7 @@ static void parse( MetaTranslator *tor, const char *initialContext, } } functionContext = defaultContext; - missing_TQ_OBJECT = FALSE; + missing_TQ_OBJECT = false; } yyTok = getToken(); break; @@ -741,7 +741,7 @@ bool UiHandler::startElement( const TQString& /* namespaceURI */, flush(); } accum.truncate( 0 ); - return TRUE; + return true; } bool UiHandler::endElement( const TQString& /* namespaceURI */, @@ -764,13 +764,13 @@ bool UiHandler::endElement( const TQString& /* namespaceURI */, } else { flush(); } - return TRUE; + return true; } bool UiHandler::characters( const TQString& ch ) { accum += ch; - return TRUE; + return true; } bool UiHandler::fatalError( const TQXmlParseException& exception ) @@ -780,7 +780,7 @@ bool UiHandler::fatalError( const TQXmlParseException& exception ) exception.lineNumber(), exception.columnNumber(), exception.message().latin1() ); fprintf( stderr, "XML error: %s\n", msg.latin1() ); - return FALSE; + return false; } void UiHandler::flush() @@ -788,7 +788,7 @@ void UiHandler::flush() if ( !context.isEmpty() && !source.isEmpty() ) tor->insert( MetaTranslatorMessage(context.utf8(), source.utf8(), comment.utf8(), TQString::null, - TRUE) ); + true) ); source.truncate( 0 ); comment.truncate( 0 ); } @@ -807,10 +807,10 @@ void fetchtr_ui( const char *fileName, MetaTranslator *tor, TQTextStream t( &f ); TQXmlInputSource in( t ); TQXmlSimpleReader reader; - reader.setFeature( "http://xml.org/sax/features/namespaces", FALSE ); - reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", TRUE ); + reader.setFeature( "http://xml.org/sax/features/namespaces", false ); + reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", true ); reader.setFeature( "http://trolltech.com/xml/features/report-whitespace" - "-only-CharData", FALSE ); + "-only-CharData", false ); TQXmlDefaultHandler *hand = new UiHandler( tor, fileName ); reader.setContentHandler( hand ); reader.setErrorHandler( hand ); |
