[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kjs
From: Tom Albers <toma () kde ! org>
Date: 2010-01-17 1:25:28
Message-ID: 1263691528.284039.24872.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1075926 by toma:
Fix some compiler warnings.
M +1 -0 JSVariableObject.h
M +2 -0 api/kjsobject.cpp
M +3 -0 api/kjsprototype.cpp
M +2 -0 array_object.h
M +1 -0 bool_object.h
M +1 -0 date_object.h
M +2 -0 error_object.h
M +6 -0 function.h
M +1 -0 math_object.h
M +1 -0 number_object.h
M +1 -1 object.cpp
M +1 -0 object_object.h
M +3 -0 regexp_object.h
M +4 -0 scriptfunction.h
M +4 -0 string_object.h
--- trunk/KDE/kdelibs/kjs/JSVariableObject.h #1075925:1075926
@@ -59,6 +59,7 @@
class JSVariableObject : public JSObject {
public:
+ using KJS::JSObject::deleteProperty;
virtual bool deleteProperty(ExecState*, const Identifier&);
virtual void getOwnPropertyNames(ExecState*, PropertyNameArray&);
--- trunk/KDE/kdelibs/kjs/api/kjsobject.cpp #1075925:1075926
@@ -111,6 +111,8 @@
static JSValue* constructDateHelper(KJSContext* ctx, const QDateTime& dt)
{
+ Q_UNUSED(ctx);
+ Q_UNUSED(dt);
kWarning() << "converDateTimeHelper() not implemented, yet";
// ### make call into data_object.cpp
--- trunk/KDE/kdelibs/kjs/api/kjsprototype.cpp #1075925:1075926
@@ -67,6 +67,7 @@
CustomObjectInfo(v)
{}
+ using KJS::JSObject::put;
void put(ExecState* exec, const Identifier& id,
JSValue *value, int attr = None);
@@ -169,6 +170,7 @@
qDeleteAll(properties);
}
+ using KJS::JSObject::getOwnPropertySlot;
bool getOwnPropertySlot(ExecState *exec, const Identifier& id,
PropertySlot& sl)
{
@@ -286,6 +288,7 @@
PropertyGetter getter,
PropertySetter setter)
{
+ Q_UNUSED(ctx);
assert(getter);
CustomPrototype* p = PROTOTYPE(this);
--- trunk/KDE/kdelibs/kjs/array_object.h #1075925:1075926
@@ -32,6 +32,7 @@
public:
ArrayPrototype(ExecState *exec,
ObjectPrototype *objProto);
+ using KJS::ArrayInstance::getOwnPropertySlot;
bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
virtual const ClassInfo *classInfo() const { return &info; }
static const ClassInfo info;
@@ -58,6 +59,7 @@
ArrayPrototype *arrayProto);
virtual bool implementsConstruct() const;
+ using KJS::JSObject::construct;
virtual JSObject *construct(ExecState *exec, const List &args);
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
--- trunk/KDE/kdelibs/kjs/bool_object.h #1075925:1075926
@@ -78,6 +78,7 @@
BooleanPrototype *booleanProto);
virtual bool implementsConstruct() const;
+ using KJS::JSObject::construct;
virtual JSObject *construct(ExecState *exec, const List &args);
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
--- trunk/KDE/kdelibs/kjs/date_object.h #1075925:1075926
@@ -53,6 +53,7 @@
class DatePrototype : public DateInstance {
public:
DatePrototype(ExecState *, ObjectPrototype *);
+ using KJS::JSObject::getOwnPropertySlot;
virtual bool getOwnPropertySlot(ExecState *, const Identifier &, PropertySlot&);
virtual const ClassInfo *classInfo() const { return &info; }
static const ClassInfo info;
--- trunk/KDE/kdelibs/kjs/error_object.h #1075925:1075926
@@ -53,6 +53,7 @@
ErrorPrototype *errorProto);
virtual bool implementsConstruct() const;
+ using KJS::JSObject::construct;
virtual JSObject *construct(ExecState *exec, const List &args);
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
@@ -72,6 +73,7 @@
JSObject *prot);
virtual bool implementsConstruct() const;
+ using KJS::JSObject::construct;
virtual JSObject *construct(ExecState *exec, const List &args);
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
--- trunk/KDE/kdelibs/kjs/function.h #1075925:1075926
@@ -93,8 +93,11 @@
public:
Arguments(ExecState *exec, FunctionImp *func, const List &args, ActivationImp *act);
virtual void mark();
+ using KJS::JSObject::getOwnPropertySlot;
virtual bool getOwnPropertySlot(ExecState *, const Identifier &, PropertySlot&);
+ using KJS::JSObject::put;
virtual void put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr = None);
+ using KJS::JSObject::deleteProperty;
virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName);
virtual const ClassInfo *classInfo() const { return &info; }
static const ClassInfo info;
@@ -120,8 +123,11 @@
void requestTearOff();
void performTearOff();
+ using KJS::JSObject::getOwnPropertySlot;
virtual bool getOwnPropertySlot(ExecState *exec, const Identifier &, PropertySlot&);
+ using KJS::JSObject::put;
virtual void put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr = None);
+ using KJS::JSObject::deleteProperty;
virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName);
bool isLocalReadOnly(int propertyID) const {
--- trunk/KDE/kdelibs/kjs/math_object.h #1075925:1075926
@@ -30,6 +30,7 @@
public:
MathObjectImp(ExecState *exec,
ObjectPrototype *objProto);
+ using KJS::JSObject::getOwnPropertySlot;
bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
JSValue *getValueProperty(ExecState *exec, int token) const;
virtual const ClassInfo *classInfo() const { return &info; }
--- trunk/KDE/kdelibs/kjs/number_object.h #1075925:1075926
@@ -82,6 +82,7 @@
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
+ using KJS::JSObject::getOwnPropertySlot;
bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
JSValue *getValueProperty(ExecState *exec, int token) const;
--- trunk/KDE/kdelibs/kjs/object.cpp #1075925:1075926
@@ -508,7 +508,7 @@
return false;
}
-void JSObject::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames)
+void JSObject::getOwnPropertyNames(ExecState* /*exec*/, PropertyNameArray& propertyNames)
{
_prop.getEnumerablePropertyNames(propertyNames);
--- trunk/KDE/kdelibs/kjs/object_object.h #1075925:1075926
@@ -75,6 +75,7 @@
FunctionPrototype *funcProto);
virtual bool implementsConstruct() const;
+ using KJS::JSObject::construct;
virtual JSObject *construct(ExecState *, const List &args);
virtual JSValue *callAsFunction(ExecState *, JSObject *, const List &args);
};
--- trunk/KDE/kdelibs/kjs/regexp_object.h #1075925:1075926
@@ -74,11 +74,14 @@
FunctionPrototype *funcProto,
RegExpPrototype *regProto);
virtual bool implementsConstruct() const;
+ using KJS::JSObject::construct;
virtual JSObject *construct(ExecState *exec, const List &args);
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
+ using KJS::JSObject::put;
virtual void put(ExecState *, const Identifier &, JSValue *, int attr = None);
void putValueProperty(ExecState *, int token, JSValue *, int attr);
+ using KJS::JSObject::getOwnPropertySlot;
virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
JSValue *getValueProperty(ExecState *, int token) const;
--- trunk/KDE/kdelibs/kjs/scriptfunction.h #1075925:1075926
@@ -41,13 +41,17 @@
FunctionImp(ExecState* exec, const Identifier& n, FunctionBodyNode* b, const ScopeChain &sc);
virtual ~FunctionImp();
+ using KJS::JSObject::getOwnPropertySlot;
virtual bool getOwnPropertySlot(ExecState *, const Identifier &, PropertySlot&);
+ using KJS::JSObject::put;
virtual void put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr = None);
+ using KJS::JSObject::deleteProperty;
virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName);
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
bool implementsConstruct() const;
+ using KJS::JSObject::construct;
JSObject *construct(ExecState *exec, const List &args);
// Note: implemented in nodes2string.cpp
--- trunk/KDE/kdelibs/kjs/string_object.h #1075925:1075926
@@ -37,7 +37,9 @@
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual bool getOwnPropertySlot(ExecState*, unsigned propertyName, PropertySlot&);
+ using KJS::JSObject::put;
virtual void put(ExecState* exec, const Identifier& propertyName, JSValue*, int attr = None);
+ using KJS::JSObject::deleteProperty;
virtual bool deleteProperty(ExecState* exec, const Identifier& propertyName);
virtual void getOwnPropertyNames(ExecState*, PropertyNameArray&);
@@ -68,6 +70,7 @@
public:
StringPrototype(ExecState *exec,
ObjectPrototype *objProto);
+ using KJS::StringInstance::getOwnPropertySlot;
virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);
virtual const ClassInfo *classInfo() const { return &info; }
static const ClassInfo info;
@@ -113,6 +116,7 @@
StringPrototype *stringProto);
virtual bool implementsConstruct() const;
+ using KJS::JSObject::construct;
virtual JSObject *construct(ExecState *exec, const List &args);
virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic