[Kst] branches/work/kst/1.5/kst/src/extensions/js/kjsembed

Andrew Walker arwalker at sumusltd.com
Fri Jul 20 03:38:03 CEST 2007


SVN commit 690076 by arwalker:

remove compiler warnings

 M  +2 -0      global.cpp  
 M  +4 -0      jsfactory.cpp  
 M  +1 -1      jsobjectproxy_imp.cpp  


--- branches/work/kst/1.5/kst/src/extensions/js/kjsembed/global.cpp #690075:690076
@@ -42,6 +42,8 @@
    int k;
    char c, flag, *ostr;
 
+   radix = 10;
+
    if (num < 0) {
       num = -num;
       *str++ = '-';
--- branches/work/kst/1.5/kst/src/extensions/js/kjsembed/jsfactory.cpp #690075:690076
@@ -459,6 +459,10 @@
     }
 
     KJS::Object JSFactory::createOpaque( KJS::ExecState *exec, const QString &cname, const KJS::List &args ) {
+        Q_UNUSED(exec)
+        Q_UNUSED(cname)
+        Q_UNUSED(args)
+
         return KJS::Object();
     }
 
--- branches/work/kst/1.5/kst/src/extensions/js/kjsembed/jsobjectproxy_imp.cpp #690075:690076
@@ -385,7 +385,7 @@
 	return KJS::Boolean( false );
     }
 
-    bool ok;
+    bool ok = false;
     switch ( id ) {
 	case JSSlotUtils::SignatureNone:
 	    ok = JSSlotUtils::connect( sender, sig, slotp, "slot_void()" );


More information about the Kst mailing list