diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-26 14:08:52 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-12-27 22:38:28 +0900 |
| commit | 50326e196a9245af21604da7dc3a36eea52784ed (patch) | |
| tree | 955f50c739379c59d3846c5c6ec25c8f5856fb91 /src/widgets/tqvalidator.cpp | |
| parent | 854c5d5c9cfd48a2d5a17366fb6805219eab4859 (diff) | |
| download | tqt-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.cpp | 6 |
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 |
