diff options
Diffstat (limited to 'puic/main.cpp')
-rw-r--r-- | puic/main.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/puic/main.cpp b/puic/main.cpp index d6411ee..bb36782 100644 --- a/puic/main.cpp +++ b/puic/main.cpp @@ -46,10 +46,10 @@ void getDBConnections( Uic& uic, TQString& s); int main( int argc, char * argv[] ) { PyIndent indent; - bool execCode = FALSE; - bool subcl = FALSE; - bool imagecollection = FALSE; - bool imagecollection_tmpfile = FALSE; + bool execCode = false; + bool subcl = false; + bool imagecollection = false; + bool imagecollection_tmpfile = false; TQStringList images; const char *error = 0; const char* fileName = 0; @@ -58,9 +58,9 @@ int main( int argc, char * argv[] ) TQCString image_tmpfile; const char* projectName = 0; const char* trmacro = 0; - bool nofwd = FALSE; - bool fix = FALSE; - TQApplication app(argc, argv, FALSE); + bool nofwd = false; + bool fix = false; + TQApplication app(argc, argv, false); TQString uicClass; @@ -78,7 +78,7 @@ int main( int argc, char * argv[] ) } else outputFile = &opt[1]; } else if ( opt[0] == 'e' || opt == "embed" ) { - imagecollection = TRUE; + imagecollection = true; if ( opt == "embed" || opt[1] == '\0' ) { if ( !(n < argc-2) ) { error = "Missing arguments."; @@ -89,14 +89,14 @@ 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; } } else if ( opt == "nofwd" ) { - nofwd = TRUE; + nofwd = true; } else if ( opt == "subimpl" ) { - subcl = TRUE; + subcl = true; if ( !(n < argc-2) ) { error = "Missing arguments."; break; @@ -120,7 +120,7 @@ int main( int argc, char * argv[] ) } else if ( opt == "help" ) { break; } else if ( opt == "fix" ) { - fix = TRUE; + fix = true; } else if ( opt[0] == 'p' ) { uint tabstop; bool ok; @@ -139,7 +139,7 @@ int main( int argc, char * argv[] ) else error = "Invalid indent"; } else if ( opt == "x" ) { - execCode = TRUE; + execCode = true; } else { error = TQString( "Unrecognized option " + opt ).latin1(); } |