summaryrefslogtreecommitdiffstats
path: root/tools/designer/uic/main.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-30 14:27:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-06-25 16:43:08 +0900
commit35ced32e331ee29fda1642616c803637952f5b22 (patch)
treeda44726777f814e19c7ef1e43854f6a1693dd6fb /tools/designer/uic/main.cpp
parent7dd4848d61e4c52091d6c644356c84c67536bde2 (diff)
downloadtqt-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/designer/uic/main.cpp')
-rw-r--r--tools/designer/uic/main.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/tools/designer/uic/main.cpp b/tools/designer/uic/main.cpp
index af06821e2..bd0441c75 100644
--- a/tools/designer/uic/main.cpp
+++ b/tools/designer/uic/main.cpp
@@ -52,12 +52,12 @@ extern TQStringList *dbpaths;
int main( int argc, char * argv[] )
{
- bool impl = FALSE;
- bool subcl = FALSE;
- bool imagecollection = FALSE;
- bool imagecollection_tmpfile = FALSE;
+ bool impl = false;
+ bool subcl = false;
+ bool imagecollection = false;
+ bool imagecollection_tmpfile = false;
#if defined(UIB)
- bool binary = FALSE;
+ bool binary = false;
#endif
TQStringList images;
const char *error = 0;
@@ -68,10 +68,10 @@ int main( int argc, char * argv[] )
TQCString image_tmpfile;
const char* projectName = 0;
const char* trmacro = 0;
- bool nofwd = FALSE;
- bool fix = FALSE;
+ bool nofwd = false;
+ bool fix = false;
TQCString pchFile;
- TQApplication app(argc, argv, FALSE);
+ TQApplication app(argc, argv, false);
TQString keybase( "/TQt Designer/" +
TQString::number( (TQT_VERSION >> 16) & 0xff ) +"." + TQString::number( (TQT_VERSION >> 8) & 0xff ) + "/" );
@@ -95,7 +95,7 @@ int main( int argc, char * argv[] )
} else
outputFile = &opt[1];
} else if ( opt[0] == 'i' || opt == "impl" ) {
- impl = TRUE;
+ impl = true;
if ( opt == "impl" || opt[1] == '\0' ) {
if ( !(n < argc-1) ) {
error = "Missing name of header file";
@@ -105,7 +105,7 @@ int main( int argc, char * argv[] )
} else
headerFile = &opt[1];
} else if ( opt[0] == 'e' || opt == "embed" ) {
- imagecollection = TRUE;
+ imagecollection = true;
if ( opt == "embed" || opt[1] == '\0' ) {
if ( !(n < argc-1) ) {
error = "Missing name of project";
@@ -116,21 +116,21 @@ int main( int argc, char * argv[] )
projectName = &opt[1];
}
if ( argc > n+1 && qstrcmp( argv[n+1], "-f" ) == 0 ) {
- imagecollection_tmpfile = TRUE;
+ imagecollection_tmpfile = true;
image_tmpfile = argv[n+2];
n += 2;
}
#if defined(UIB)
} else if ( opt == "binary" ) {
- binary = TRUE;
+ binary = true;
#endif
} else if ( opt == "nofwd" ) {
- nofwd = TRUE;
+ nofwd = true;
} else if ( opt == "nounload" ) {
- dbnounload = TRUE;
+ dbnounload = true;
} else if ( opt == "subdecl" ) {
- subcl = TRUE;
+ subcl = true;
if ( !(n < argc-2) ) {
error = "Missing arguments";
break;
@@ -138,8 +138,8 @@ int main( int argc, char * argv[] )
className = argv[++n];
headerFile = argv[++n];
} else if ( opt == "subimpl" ) {
- subcl = TRUE;
- impl = TRUE;
+ subcl = true;
+ impl = true;
if ( !(n < argc-2) ) {
error = "Missing arguments";
break;
@@ -174,7 +174,7 @@ int main( int argc, char * argv[] )
} else if ( opt == "help" ) {
break;
} else if ( opt == "fix" ) {
- fix = TRUE;
+ fix = true;
} else if ( opt == "pch") {
if ( !(n < argc-1) ) {
error = "Missing name of PCH file";