summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/asciivalidator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/asciivalidator.cpp')
-rw-r--r--kdevdesigner/designer/asciivalidator.cpp12
1 files changed, 6 insertions, 6 deletions
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 <tqstring.h>
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;
}