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

List:       kde-commits
Subject:    KDE/kdelibs/kjsembed/kjsembed
From:       Richard J. Moore <rich () kde ! org>
Date:       2006-04-30 23:05:08
Message-ID: 1146438308.326431.15129.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 536009 by rich:

Fix a couple of warnings and another buffer issue

 M  +6 -2      value_binding.cpp  


--- trunk/KDE/kdelibs/kjsembed/kjsembed/value_binding.cpp #536008:536009
@@ -52,6 +52,8 @@
 
 KJS::JSValue *callName( KJS::ExecState *exec, KJS::JSObject *self, const KJS::List \
&args )  {
+    Q_UNUSED( args );
+
     KJSEmbed::ValueBinding *imp = \
KJSEmbed::extractBindingImp<KJSEmbed::ValueBinding>(exec,  self );  if( imp )
     {
@@ -77,6 +79,8 @@
 
 KJS::JSValue *callToString( KJS::ExecState *exec, KJS::JSObject *self, const \
KJS::List &args )  {
+    Q_UNUSED( args );
+
     KJSEmbed::ValueBinding *imp = \
KJSEmbed::extractBindingImp<KJSEmbed::ValueBinding>(exec,  self );  if( imp )
     {
@@ -105,10 +109,10 @@
     if ( obj->className().qstring() == "Array" )
     {
         KJS::JSValue *len = obj->get(exec, KJS::Identifier("length"));
-        char buff[4];
+        char buff[21];
         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(int(len->toNumber(exec) - 1), buff, 10 ) ) ) )  return Map;
         else
             return List;


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

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