summaryrefslogtreecommitdiffstats
path: root/src/kernel/qeventloop_unix_glib.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-01-30 20:17:32 +0900
committerMichele Calgaro <[email protected]>2020-01-30 20:17:32 +0900
commit99e56ba8db70324cc5c7ab416a3b48171613bd59 (patch)
tree52fe52817fe45a81a7e03254b614b67587d83e37 /src/kernel/qeventloop_unix_glib.cpp
parent630dcedfb398b350522742f0ab4d1255ac84da85 (diff)
downloadtqt3-99e56ba8db70324cc5c7ab416a3b48171613bd59.tar.gz
tqt3-99e56ba8db70324cc5c7ab416a3b48171613bd59.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/kernel/qeventloop_unix_glib.cpp')
-rw-r--r--src/kernel/qeventloop_unix_glib.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/qeventloop_unix_glib.cpp b/src/kernel/qeventloop_unix_glib.cpp
index 51c560a72..d1e6c3adf 100644
--- a/src/kernel/qeventloop_unix_glib.cpp
+++ b/src/kernel/qeventloop_unix_glib.cpp
@@ -239,7 +239,7 @@ static void repairTimer( const timeval &time ) // repair broken timer
tqt_timerListMutex->lock();
#endif
timeval diff = watchtime - time;
- register TimerInfo *t = timerList->first();
+ TimerInfo *t = timerList->first();
while ( t ) { // repair all timers
t->timeout = t->timeout - diff;
t = timerList->next();
@@ -374,7 +374,7 @@ bool qKillTimer( int id )
#if defined(TQT_THREAD_SUPPORT)
if (tqt_timerListMutex) tqt_timerListMutex->lock();
#endif
- register TimerInfo *t;
+ TimerInfo *t;
if ( (!timerList) || (id <= 0) || (id > (int)timerBitVec->size()) || (!timerBitVec->testBit( id-1 )) ) {
#if defined(TQT_THREAD_SUPPORT)
if (tqt_timerListMutex) tqt_timerListMutex->unlock();
@@ -407,7 +407,7 @@ bool qKillTimer( TQObject *obj )
#if defined(TQT_THREAD_SUPPORT)
if (tqt_timerListMutex) tqt_timerListMutex->lock();
#endif
- register TimerInfo *t;
+ TimerInfo *t;
if ( !timerList ) { // not initialized
#if defined(TQT_THREAD_SUPPORT)
if (tqt_timerListMutex) tqt_timerListMutex->unlock();
@@ -645,7 +645,7 @@ int TQEventLoop::activateTimers()
timeval currentTime;
int n_act = 0, maxCount = timerList->count();
TimerInfo *begin = 0;
- register TimerInfo *t;
+ TimerInfo *t;
for ( ;; ) {
if ( ! maxCount-- ) {