summaryrefslogtreecommitdiffstats
path: root/src/widgets/tqvalidator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/tqvalidator.cpp')
-rw-r--r--src/widgets/tqvalidator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/tqvalidator.cpp b/src/widgets/tqvalidator.cpp
index d04a2fa70..d46e7484e 100644
--- a/src/widgets/tqvalidator.cpp
+++ b/src/widgets/tqvalidator.cpp
@@ -429,9 +429,9 @@ TQValidator::State TQDoubleValidator::validate( TQString & input, int & ) const
return Invalid;
if ( empty.exactMatch(input) )
return Intermediate;
- bool ok = TRUE;
+ bool ok = true;
double entered = input.toDouble( &ok );
- int nume = input.contains( 'e', FALSE );
+ int nume = input.contains( 'e', false );
if ( !ok ) {
// explicit exponent regexp
TQRegExp expexpexp( TQString::fromLatin1("[Ee][+-]?\\d*$") );
@@ -574,7 +574,7 @@ void TQDoubleValidator::setDecimals( int decimals )
// match most 'readme' files
rx.setPattern( "read\\S?me(\.(txt|asc|1st))?" );
- rx.setCaseSensitive( FALSE );
+ rx.setCaseSensitive( false );
v.setRegExp( rx );
s = "readme"; v.validate( s, pos ); // Returns Acceptable
s = "README.1ST"; v.validate( s, pos ); // Returns Acceptable