[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdebase/nsplugins/viewer
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2008-01-07 16:04:56
Message-ID: 1199721896.388451.30651.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 758319 by lunakl:

Fix 64bit problem.
BUG: 154713



 M  +5 -5      qxteventloop.cpp  


--- branches/KDE/3.5/kdebase/nsplugins/viewer/qxteventloop.cpp #758318:758319
@@ -72,7 +72,7 @@
 
     QIntDict<QSocketNotifier> socknotDict;
     bool activate_timers;
-    int timerid;
+    XtIntervalId timerid;
 
     // arguments for Xt display initialization
     const char* applicationClass;
@@ -110,7 +110,7 @@
 
 QXtEventLoopPrivate::QXtEventLoopPrivate()
     : appContext(NULL), ownContext(NULL),
-      activate_timers(FALSE), timerid(-1)
+      activate_timers(FALSE), timerid(0)
 {
 }
 
@@ -416,7 +416,7 @@
 void qmotif_timeout_handler( XtPointer, XtIntervalId * )
 {
     static_d->activate_timers = TRUE;
-    static_d->timerid = -1;
+    static_d->timerid = 0;
 }
 
 /*! \reimp
@@ -429,10 +429,10 @@
 
     // make sure we fire off Qt's timers
     int ttw = timeToWait();
-    if ( d->timerid != -1 ) {
+    if ( d->timerid != 0 ) {
 	XtRemoveTimeOut( d->timerid );
     }
-    d->timerid = -1;
+    d->timerid = 0;
     if ( ttw != -1 ) {
 	d->timerid =
 	    XtAppAddTimeOut( d->appContext, ttw,
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic