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

List:       kde-commits
Subject:    kdelibs/khtml/ecma
From:       David Faure <faure () kde ! org>
Date:       2002-12-05 16:26:37
[Download RAW message or body]

CVS commit by faure: 

Fix wrong warning


  M +2 -1      kjs_window.cpp   1.302


--- kdelibs/khtml/ecma/kjs_window.cpp:1.301	Thu Nov 28 13:11:42 2002
@@ -1314,7 +1314,8 @@
       funcArgs->removeFirst(); // all args after 2 go to the function
       funcArgs->removeFirst();
 #endif
-      kdWarning(6070) << "setTimeout(more than 2 args) is not fully implemented!" << endl;
+      if ( args.size() > 2 )
+        kdWarning(6070) << "setTimeout(more than 2 args) is not fully implemented!" << endl;
       int r = (const_cast<Window*>(window))->installTimeout(s, i, true /*single shot*/);
       return Number(r);
     }

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

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