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:29:01 +0900 |
commit | a7f1e6e2552d9cdbb3d76bff089db522248b9a24 (patch) | |
tree | 2e6dd07698083df817163d572443aaf6fdd26651 /tools/assistant/main.cpp | |
parent | 2584dba8aabfa2db8297dcfa258d33545ed6af43 (diff) | |
download | tqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.tar.gz tqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.zip |
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tools/assistant/main.cpp')
-rw-r--r-- | tools/assistant/main.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tools/assistant/main.cpp b/tools/assistant/main.cpp index ba26d82c1..83c367d62 100644 --- a/tools/assistant/main.cpp +++ b/tools/assistant/main.cpp @@ -54,7 +54,7 @@ #define INDEX_CHECK( text ) if( i+1 >= argc ) { fprintf( stderr, text "\n" ); return 1; } #endif -static bool allowFirstRun = TRUE; +static bool allowFirstRun = true; class AssistantSocket : public TQSocket { @@ -142,7 +142,7 @@ void AssistantServer::newConnection( int socket ) int main( int argc, char ** argv ) { - bool withGUI = TRUE; + bool withGUI = true; if ( argc > 1 ) { TQString arg( argv[1] ); arg = arg.lower(); @@ -152,7 +152,7 @@ int main( int argc, char ** argv ) || arg == "-help" #endif ) - withGUI = FALSE; + withGUI = false; } TQApplication a(argc, argv, withGUI); @@ -160,10 +160,10 @@ int main( int argc, char ** argv ) AssistantServer *as = 0; TQStringList catlist; TQString file, profileName, aDocPath; - bool server = FALSE; - bool hideSidebar = FALSE; - bool startClean = FALSE; - bool configLoaded = FALSE; + bool server = false; + bool hideSidebar = false; + bool startClean = false; + bool configLoaded = false; if ( argc == 2 ) { if ( (argv[1])[0] != '-' ) file = argv[1]; @@ -175,7 +175,7 @@ int main( int argc, char ** argv ) i++; file = argv[i]; } else if ( TQString( argv[i] ).lower() == "-server" ) { - server = TRUE; + server = true; } else if ( TQString( argv[i] ).lower() == "-profile" ) { INDEX_CHECK( "Missing profile argument!" ); profileName = argv[++i]; @@ -199,7 +199,7 @@ int main( int argc, char ** argv ) return 1; } parser->addTo( c->profile() ); - c->setDocRebuild( TRUE ); + c->setDocRebuild( true ); c->save(); } return 0; @@ -227,7 +227,7 @@ int main( int argc, char ** argv ) return 1; } profile->removeDocFileEntry( file.absFilePath() ); - c->setDocRebuild( TRUE ); + c->setDocRebuild( true ); c->save(); } return 0; @@ -238,9 +238,9 @@ int main( int argc, char ** argv ) Config *c = Config::loadConfig( TQString::null ); c->saveProfile(Profile::createDefaultProfile(dir.absPath())); c->loadDefaultProfile(); - c->setDocRebuild( TRUE ); + c->setDocRebuild( true ); c->save(); - configLoaded = TRUE; + configLoaded = true; ++i; } else { fprintf( stderr, "The specified path does not exist!\n"); @@ -248,7 +248,7 @@ int main( int argc, char ** argv ) return 1; } } else if ( TQString( argv[i] ).lower() == "-hidesidebar" ) { - hideSidebar = TRUE; + hideSidebar = true; } else if ( TQString( argv[i] ).lower() == "-help" ) { TQString helpText( "Usage: assistant [option]\n" "Options:\n" |