summaryrefslogtreecommitdiffstats
path: root/src/script/bridge/qscriptdeclarativeclass_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-01-15 04:12:20 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-01-15 04:12:20 (GMT)
commitbd3caa48edf2cd53e561cec7ee7ccec6748a4843 (patch)
tree8dc29129364253ec53143b3cc22e3412839dd800 /src/script/bridge/qscriptdeclarativeclass_p.h
parent3b0a9dbfa3683bfb6bdc484ed225267ca56bfa9b (diff)
downloadQt-bd3caa48edf2cd53e561cec7ee7ccec6748a4843.zip
Qt-bd3caa48edf2cd53e561cec7ee7ccec6748a4843.tar.gz
Qt-bd3caa48edf2cd53e561cec7ee7ccec6748a4843.tar.bz2
Fix possible crash
The QScriptValue does not always have a valid QScriptEngine.
Diffstat (limited to 'src/script/bridge/qscriptdeclarativeclass_p.h')
-rw-r--r--src/script/bridge/qscriptdeclarativeclass_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/bridge/qscriptdeclarativeclass_p.h b/src/script/bridge/qscriptdeclarativeclass_p.h
index 6050971..357d1d5 100644
--- a/src/script/bridge/qscriptdeclarativeclass_p.h
+++ b/src/script/bridge/qscriptdeclarativeclass_p.h
@@ -52,7 +52,6 @@ public:
public:
Value();
Value(const Value &);
- Value(const QScriptValue &);
Value(QScriptContext *, int);
Value(QScriptContext *, uint);
@@ -60,12 +59,14 @@ public:
Value(QScriptContext *, double);
Value(QScriptContext *, float);
Value(QScriptContext *, const QString &);
+ Value(QScriptContext *, const QScriptValue &);
Value(QScriptEngine *, int);
Value(QScriptEngine *, uint);
Value(QScriptEngine *, bool);
Value(QScriptEngine *, double);
Value(QScriptEngine *, float);
Value(QScriptEngine *, const QString &);
+ Value(QScriptEngine *, const QScriptValue &);
~Value();
QScriptValue toScriptValue(QScriptEngine *) const;