diff options
Diffstat (limited to 'src/kernel/tqeventloop_unix.cpp')
| -rw-r--r-- | src/kernel/tqeventloop_unix.cpp | 24 |
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(); |
