summaryrefslogtreecommitdiffstats
path: root/tools/designer/plugins/cppeditor/yyreg.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-30 14:27:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-06-25 16:43:08 +0900
commit35ced32e331ee29fda1642616c803637952f5b22 (patch)
treeda44726777f814e19c7ef1e43854f6a1693dd6fb /tools/designer/plugins/cppeditor/yyreg.cpp
parent7dd4848d61e4c52091d6c644356c84c67536bde2 (diff)
downloadtqt-35ced32e.tar.gz
tqt-35ced32e.zip
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a7f1e6e2552d9cdbb3d76bff089db522248b9a24)
Diffstat (limited to 'tools/designer/plugins/cppeditor/yyreg.cpp')
-rw-r--r--tools/designer/plugins/cppeditor/yyreg.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/designer/plugins/cppeditor/yyreg.cpp b/tools/designer/plugins/cppeditor/yyreg.cpp
index 1f06a02e7..0955e896c 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();
}