From kde-commits Thu Dec 05 16:26:37 2002 From: David Faure Date: Thu, 05 Dec 2002 16:26:37 +0000 To: kde-commits Subject: kdelibs/khtml/ecma X-MARC-Message: https://marc.info/?l=kde-commits&m=103910572926681 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))->installTimeout(s, i, true /*single shot*/); return Number(r); }