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

Andrew Walker arwalker at sumusltd.com
Fri Dec 14 21:45:03 CET 2007


SVN commit 748570 by arwalker:

remove compiler warnings

 M  +8 -0      customobject_imp.cpp  
 M  +1 -1      jsbinding.cpp  
 M  +0 -2      ksimpleprocess.h  


--- branches/work/kst/1.6/kst/src/extensions/js/kjsembed/customobject_imp.cpp #748569:748570
@@ -552,6 +552,8 @@
 
 KJS::Value CustomObjectImp::qsplashScreenRepaint(KJS::ExecState *exec, KJS::Object &, const KJS::List & )
 {
+        Q_UNUSED(exec);
+
 	QSplashScreen *ss = dynamic_cast<QSplashScreen*>(proxy->widget());
     	if ( ss )
 	{
@@ -1165,6 +1167,8 @@
 
 KJS::Value Bindings::CustomObjectImp::qlistViewTakeItem( KJS::ExecState * exec, KJS::Object &, const KJS::List &args )
 {
+    Q_UNUSED(args);
+
     QListView *lv = dynamic_cast<QListView *>( proxy->object() );
     if( !lv )
         return KJS::Boolean(false);
@@ -1182,6 +1186,8 @@
 
 KJS::Value Bindings::CustomObjectImp::qlistViewFirstChild( KJS::ExecState * exec, KJS::Object &, const KJS::List &args )
 {
+    Q_UNUSED(args);
+
     QListView *lv = dynamic_cast<QListView *>( proxy->object() );
     if( !lv )
         return KJS::Boolean(false);
@@ -1193,6 +1199,8 @@
 
 KJS::Value Bindings::CustomObjectImp::qlistViewCurrentItem( KJS::ExecState * exec, KJS::Object &, const KJS::List &args )
 {
+    Q_UNUSED(args);
+
     QListView *lv = dynamic_cast<QListView *>( proxy->object() );
     if( !lv )
         return KJS::Boolean(false);
--- branches/work/kst/1.6/kst/src/extensions/js/kjsembed/jsbinding.cpp #748569:748570
@@ -634,7 +634,7 @@
 	    char buff[4];
             if( !obj.hasProperty(exec, KJS::Identifier("length")) )
                 return Map;
-            else if( !obj.hasProperty(exec, KJS::Identifier( itoa((len.toNumber(exec) - 1), buff, 10 ) ) ) )
+            else if( !obj.hasProperty(exec, KJS::Identifier( itoa((len.toInt32(exec) - 1), buff, 10 ) ) ) )
                 return Map;
             /*
             if( obj.get(exec, KJS::Identifier("length")).toInteger(exec) == 0 )
--- branches/work/kst/1.6/kst/src/extensions/js/kjsembed/ksimpleprocess.h #748569:748570
@@ -63,8 +63,6 @@
     void slotProcessExited();
     void slotReceivedStdout();
     void slotReceivedStderr();
-    
-    friend class Im_lonely;  // yet another reason why c++ is braindead...
 };
 
 #endif // KSIMPLE_PROCESS_H


More information about the Kst mailing list