summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqeventloop_unix.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-12-08 15:17:51 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-12-08 19:38:03 +0900
commit7d612f7c91d55501276a385a30dbadb121e7bd9f (patch)
tree4c6f1546e16db32779dfbf5c9e107b938faee6bb /src/kernel/tqeventloop_unix.cpp
parent5a863a8932d14b99c5f838c4efa1618070d71b29 (diff)
downloadtqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.tar.gz
tqt-7d612f7c91d55501276a385a30dbadb121e7bd9f.zip
Replace TRUE/FALSE with boolean values true/false - part 8HEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/tqeventloop_unix.cpp')
-rw-r--r--src/kernel/tqeventloop_unix.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kernel/tqeventloop_unix.cpp b/src/kernel/tqeventloop_unix.cpp
index fc0a0b48b..00bb78ae3 100644
--- a/src/kernel/tqeventloop_unix.cpp
+++ b/src/kernel/tqeventloop_unix.cpp
@@ -67,14 +67,14 @@
Arguments:
int timerId timer identifier
Returns:
- bool TRUE if successful
+ bool true if successful
qKillTimer( obj )
Stops all timers that are sent to the specified object.
Arguments:
TQObject *obj object receiving timer events
Returns:
- bool TRUE if successful
+ bool true if successful
*****************************************************************************/
//
@@ -232,14 +232,14 @@ static void repairTimer( const timeval &time ) // repair broken timer
timeval *qt_wait_timer()
{
static timeval tm;
- bool first = TRUE;
+ bool first = true;
timeval currentTime;
if ( timerList && timerList->count() ) { // there are waiting timers
getTime( currentTime );
if ( first ) {
if ( currentTime < watchtime ) // clock was turned back
repairTimer( currentTime );
- first = FALSE;
+ first = false;
watchtime = currentTime;
}
TimerInfo *t = timerList->first(); // first waiting timer
@@ -270,7 +270,7 @@ static void initTimers() // initialize timers
timerBitVec->clearBit( i );
timerList = new TimerList;
TQ_CHECK_PTR( timerList );
- timerList->setAutoDelete( TRUE );
+ timerList->setAutoDelete( true );
gettimeofday( &watchtime, 0 );
}
@@ -311,7 +311,7 @@ bool qKillTimer( int id )
TimerInfo *t;
if ( !timerList || id <= 0 ||
id > (int)timerBitVec->size() || !timerBitVec->testBit( id-1 ) )
- return FALSE; // not init'd or invalid timer
+ return false; // not init'd or invalid timer
t = timerList->first();
while ( t && t->id != id ) // find timer info in list
t = timerList->next();
@@ -320,14 +320,14 @@ bool qKillTimer( int id )
return timerList->remove();
}
else // id not found
- return FALSE;
+ return false;
}
bool qKillTimer( TQObject *obj )
{
TimerInfo *t;
if ( !timerList ) // not initialized
- return FALSE;
+ return false;
t = timerList->first();
while ( t ) { // check all timers
if ( t->obj == obj ) { // object found
@@ -338,7 +338,7 @@ bool qKillTimer( TQObject *obj )
t = timerList->next();
}
}
- return TRUE;
+ return true;
}
/*****************************************************************************
@@ -381,7 +381,7 @@ void TQEventLoop::registerSocketNotifier( TQSocketNotifier *notifier )
// create new list, the TQSockNotType destructor will delete it for us
list = new TQPtrList<TQSockNot>;
TQ_CHECK_PTR( list );
- list->setAutoDelete( TRUE );
+ list->setAutoDelete( true );
d->sn_vec[type].list = list;
}
@@ -526,7 +526,7 @@ int TQEventLoop::activateTimers()
{
if ( !timerList || !timerList->count() ) // no timers
return 0;
- bool first = TRUE;
+ bool first = true;
timeval currentTime;
int n_act = 0, maxCount = timerList->count();
TimerInfo *begin = 0;
@@ -539,7 +539,7 @@ int TQEventLoop::activateTimers()
if ( first ) {
if ( currentTime < watchtime ) // clock was turned back
repairTimer( currentTime );
- first = FALSE;
+ first = false;
watchtime = currentTime;
}
t = timerList->first();