diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-30 14:27:29 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-06-25 16:43:08 +0900 |
| commit | 35ced32e331ee29fda1642616c803637952f5b22 (patch) | |
| tree | da44726777f814e19c7ef1e43854f6a1693dd6fb /tools/linguist/lupdate/main.cpp | |
| parent | 7dd4848d61e4c52091d6c644356c84c67536bde2 (diff) | |
| download | tqt-35ced32e.tar.gz tqt-35ced32e.zip | |
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit a7f1e6e2552d9cdbb3d76bff089db522248b9a24)
Diffstat (limited to 'tools/linguist/lupdate/main.cpp')
| -rw-r--r-- | tools/linguist/lupdate/main.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tools/linguist/lupdate/main.cpp b/tools/linguist/lupdate/main.cpp index 1e7225081..3f4695e55 100644 --- a/tools/linguist/lupdate/main.cpp +++ b/tools/linguist/lupdate/main.cpp @@ -101,18 +101,18 @@ int main( int argc, char **argv ) TQCString codec; TQStringList tsFileNames; - bool verbose = FALSE; - bool noObsolete = FALSE; - bool metSomething = FALSE; + bool verbose = false; + bool noObsolete = false; + bool metSomething = false; int numFiles = 0; - bool standardSyntax = TRUE; - bool metTsFlag = FALSE; + bool standardSyntax = true; + bool metTsFlag = false; int i; for ( i = 1; i < argc; i++ ) { if ( qstrcmp(argv[i], "-ts") == 0 ) - standardSyntax = FALSE; + standardSyntax = false; } for ( i = 1; i < argc; i++ ) { @@ -120,16 +120,16 @@ int main( int argc, char **argv ) printUsage(); return 0; } else if ( qstrcmp(argv[i], "-noobsolete") == 0 ) { - noObsolete = TRUE; + noObsolete = true; continue; } else if ( qstrcmp(argv[i], "-verbose") == 0 ) { - verbose = TRUE; + verbose = true; continue; } else if ( qstrcmp(argv[i], "-version") == 0 ) { fprintf( stderr, "lupdate version %s\n", TQT_VERSION_STR ); return 0; } else if ( qstrcmp(argv[i], "-ts") == 0 ) { - metTsFlag = TRUE; + metTsFlag = true; continue; } @@ -167,17 +167,17 @@ int main( int argc, char **argv ) for ( t = toks.begin(); t != toks.end(); ++t ) { if ( it.key() == "HEADERS" || it.key() == "SOURCES" ) { - fetchtr_cpp( *t, &fetchedTor, defaultContext, TRUE ); - metSomething = TRUE; + fetchtr_cpp( *t, &fetchedTor, defaultContext, true ); + metSomething = true; } else if ( it.key() == "INTERFACES" || it.key() == "FORMS" ) { - fetchtr_ui( *t, &fetchedTor, defaultContext, TRUE ); + fetchtr_ui( *t, &fetchedTor, defaultContext, true ); fetchtr_cpp( *t + ".h", &fetchedTor, defaultContext, - FALSE ); - metSomething = TRUE; + false ); + metSomething = true; } else if ( it.key() == "TRANSLATIONS" ) { tsFileNames.append( *t ); - metSomething = TRUE; + metSomething = true; } else if ( it.key() == "CODEC" || it.key() == "DEFAULTCODEC" ) { codec = (*t).latin1(); @@ -219,11 +219,11 @@ int main( int argc, char **argv ) } else { TQFileInfo fi(argv[i]); if ( TQString(argv[i]).lower().endsWith(".ui") ) { - fetchtr_ui( fi.fileName(), &fetchedTor, defaultContext, TRUE ); + fetchtr_ui( fi.fileName(), &fetchedTor, defaultContext, true ); fetchtr_cpp( TQString(fi.fileName()) + ".h", &fetchedTor, - defaultContext, FALSE ); + defaultContext, false ); } else { - fetchtr_cpp( fi.fileName(), &fetchedTor, defaultContext, TRUE ); + fetchtr_cpp( fi.fileName(), &fetchedTor, defaultContext, true ); } } } |
