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
committerSlávek Banko <[email protected]>2021-02-01 23:39:38 +0100
commit961eb3f6e276b4a3609328a3076ef790026e9c03 (patch)
treef27de88e666ac3e067e01b15ac60a103eb3c559f /src/kernel/qeventloop_unix_glib.cpp
parentb08a6d71ba872e67b75a822fcd44670126975818 (diff)
downloadqt3-961eb3f6e276b4a3609328a3076ef790026e9c03.tar.gz
qt3-961eb3f6e276b4a3609328a3076ef790026e9c03.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 c41acce..24f5783 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
qt_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(QT_THREAD_SUPPORT)
if (qt_timerListMutex) qt_timerListMutex->lock();
#endif
- register TimerInfo *t;
+ TimerInfo *t;
if ( (!timerList) || (id <= 0) || (id > (int)timerBitVec->size()) || (!timerBitVec->testBit( id-1 )) ) {
#if defined(QT_THREAD_SUPPORT)
if (qt_timerListMutex) qt_timerListMutex->unlock();
@@ -407,7 +407,7 @@ bool qKillTimer( QObject *obj )
#if defined(QT_THREAD_SUPPORT)
if (qt_timerListMutex) qt_timerListMutex->lock();
#endif
- register TimerInfo *t;
+ TimerInfo *t;
if ( !timerList ) { // not initialized
#if defined(QT_THREAD_SUPPORT)
if (qt_timerListMutex) qt_timerListMutex->unlock();
@@ -645,7 +645,7 @@ int QEventLoop::activateTimers()
timeval currentTime;
int n_act = 0, maxCount = timerList->count();
TimerInfo *begin = 0;
- register TimerInfo *t;
+ TimerInfo *t;
for ( ;; ) {
if ( ! maxCount-- ) {