summaryrefslogtreecommitdiffstats
path: root/src/widgets/tqvalidator.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-26 14:08:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-27 22:38:28 +0900
commit50326e196a9245af21604da7dc3a36eea52784ed (patch)
tree955f50c739379c59d3846c5c6ec25c8f5856fb91 /src/widgets/tqvalidator.cpp
parent854c5d5c9cfd48a2d5a17366fb6805219eab4859 (diff)
downloadtqt-50326e196a9245af21604da7dc3a36eea52784ed.tar.gz
tqt-50326e196a9245af21604da7dc3a36eea52784ed.zip
Replace TRUE/FALSE with boolean values true/false - part 10
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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