summaryrefslogtreecommitdiffstats
path: root/pytqlupdate3/numberh.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 13:24:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 21:11:58 +0900
commit2d2a66210c4827dd2469d4fde55bf2c9aab81b5a (patch)
tree8a1b99c230b11fb6e679434055553504620119c7 /pytqlupdate3/numberh.cpp
parentf89d120a2d4982896f0b5c00cee347a010f609a9 (diff)
downloadpytqt-2d2a6621.tar.gz
pytqt-2d2a6621.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 6cbdd25dc4c6b0987636b37b2046b1b9464e3d60)
Diffstat (limited to 'pytqlupdate3/numberh.cpp')
-rw-r--r--pytqlupdate3/numberh.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/pytqlupdate3/numberh.cpp b/pytqlupdate3/numberh.cpp
index a52687b..1392b60 100644
--- a/pytqlupdate3/numberh.cpp
+++ b/pytqlupdate3/numberh.cpp
@@ -55,14 +55,14 @@ static TQCString zeroKey( const char *key )
char *z = zeroed.data();
int i = 0, j = 0;
int len;
- bool metSomething = FALSE;
+ bool metSomething = false;
while ( key[i] != '\0' ) {
len = numberLength( key + i );
if ( len > 0 ) {
i += len;
z[j++] = '0';
- metSomething = TRUE;
+ metSomething = true;
} else {
z[j++] = key[i++];
}
@@ -107,7 +107,7 @@ static TQString translationAttempt( const TQString& oldTranslation,
newNumbers.append( TQCString(newSource + j, n + 1) );
i += m;
j += n;
- met[k] = FALSE;
+ met[k] = false;
matchedYet[k] = 0;
k++;
}
@@ -150,7 +150,7 @@ static TQString translationAttempt( const TQString& oldTranslation,
if ( best != p ) {
attempt.truncate( attempt.length() - matchedYet[best] );
attempt += newNumbers[best];
- met[best] = TRUE;
+ met[best] = true;
for ( k = 0; k < p; k++ )
matchedYet[k] = 0;
break;