diff options
Diffstat (limited to 'tools/designer/plugins/cppeditor/yyreg.cpp')
| -rw-r--r-- | tools/designer/plugins/cppeditor/yyreg.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/designer/plugins/cppeditor/yyreg.cpp b/tools/designer/plugins/cppeditor/yyreg.cpp index 1c93db0a9..b3335133f 100644 --- a/tools/designer/plugins/cppeditor/yyreg.cpp +++ b/tools/designer/plugins/cppeditor/yyreg.cpp @@ -159,7 +159,7 @@ static int getToken() if ( yyCh == EOF ) { break; } else if ( isspace(yyCh) ) { - bool metNL = FALSE; + bool metNL = false; do { metNL = ( metNL || yyCh == '\n' ); readChar(); @@ -294,8 +294,8 @@ static int getToken() */ readChar(); if ( yyCh == '*' ) { - bool metAster = FALSE; - bool metAsterSlash = FALSE; + bool metAster = false; + bool metAsterSlash = false; readChar(); @@ -304,11 +304,11 @@ static int getToken() break; if ( yyCh == '*' ) - metAster = TRUE; + metAster = true; else if ( metAster && yyCh == '/' ) - metAsterSlash = TRUE; + metAsterSlash = true; else - metAster = FALSE; + metAster = false; readChar(); } break; @@ -406,8 +406,8 @@ TQString CppFunction::prototype() const static int yyTok; // the current token /* - Returns TRUE if thingy is a constructor or a destructor; otherwise - returns FALSE. + Returns true if thingy is a constructor or a destructor; otherwise + returns false. */ static bool isCtorOrDtor( const TQString& thingy ) { @@ -512,7 +512,7 @@ static TQString matchDataType() Alpha::Beta::Gamma::...::Omega. */ for ( ;; ) { - bool modifierMet = FALSE; + bool modifierMet = false; prependToType( &type, matchTemplateAngles() ); @@ -525,7 +525,7 @@ static TQString matchDataType() prependToType( &type, yyLex ); yyTok = getToken(); if ( yyTok != Tok_const ) - modifierMet = TRUE; + modifierMet = true; } if ( yyTok == Tok_Tilde ) { @@ -578,10 +578,10 @@ static CppFunction matchFunctionPrototype( bool stripParamNames ) TQString scopedName; TQStringList params; TQString qualifier; - bool cnst = FALSE; + bool cnst = false; if ( yyTok == Tok_const ) { - cnst = TRUE; + cnst = true; yyTok = getToken(); } @@ -753,7 +753,7 @@ static void matchTranslationUnit( TQValueList<CppFunction> *flist ) // found a left brace yyTok = getToken(); startBody = yyPos; - CppFunction func = matchFunctionPrototype( FALSE ); + CppFunction func = matchFunctionPrototype( false ); if ( !func.scopedName().isEmpty() ) { TQString body = yyIn->mid( startBody, endBody - startBody ); setBody( &func, body ); @@ -794,7 +794,7 @@ TQString canonicalCppProto( const TQString& proto ) { startTokenizer( proto ); yyTok = getToken(); - CppFunction func = matchFunctionPrototype( TRUE ); + CppFunction func = matchFunctionPrototype( true ); stopTokenizer(); return func.prototype(); } |
