summaryrefslogtreecommitdiffstats
path: root/tools/assistant/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/assistant/main.cpp')
-rw-r--r--tools/assistant/main.cpp26
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"