From d2d30bfbef26707f9158cbc31d5763a9a1d4ab2d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 8 Apr 2025 12:59:07 +0900 Subject: Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro (cherry picked from commit 5198c9d3ac02aa9c7949f49e3cf374f683facb18) --- kdevdesigner/designer/asciivalidator.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kdevdesigner/designer/asciivalidator.cpp') diff --git a/kdevdesigner/designer/asciivalidator.cpp b/kdevdesigner/designer/asciivalidator.cpp index 667b0a61..696ffeae 100644 --- a/kdevdesigner/designer/asciivalidator.cpp +++ b/kdevdesigner/designer/asciivalidator.cpp @@ -29,7 +29,7 @@ #include AsciiValidator::AsciiValidator( TQObject * parent, const char *name ) - : TQValidator( parent, name ), functionName( FALSE ) + : TQValidator( parent, name ), functionName( false ) { } @@ -39,7 +39,7 @@ AsciiValidator::AsciiValidator( bool funcName, TQObject * parent, const char *na } AsciiValidator::AsciiValidator( const TQString &allow, TQObject * parent, const char *name ) - : TQValidator( parent, name ), functionName( FALSE ), allowedChars( allow ) + : TQValidator( parent, name ), functionName( false ), allowedChars( allow ) { } @@ -49,8 +49,8 @@ AsciiValidator::~AsciiValidator() TQValidator::State AsciiValidator::validate( TQString &s, int & ) const { - bool inParen = FALSE; - bool outParen = FALSE; + bool inParen = false; + bool outParen = false; if ( !s.isEmpty() && s[0].row() == 0 && s[0].cell() >= '0' && s[0].cell() <= '9' ) s[0] = '_'; for ( int i = 0, j = 0; i < (int) s.length(); i++ ) { @@ -75,11 +75,11 @@ TQValidator::State AsciiValidator::validate( TQString &s, int & ) const if ( functionName ) { if ( c == '(' ) { - inParen = TRUE; + inParen = true; continue; } if ( c == ')' ) { - outParen = TRUE; + outParen = true; j = i + 1; continue; } -- cgit v1.2.3