summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptvalue.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-20 16:14:05 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-20 16:14:05 (GMT)
commit284165a06de1e6c140db51b3dde6ad055b93c21e (patch)
treef44653698150c910f471de7d874faabfd9388c86 /src/script/api/qscriptvalue.cpp
parentae0a1979c309be110ee65a1ca82b94f48848b11e (diff)
downloadQt-284165a06de1e6c140db51b3dde6ad055b93c21e.zip
Qt-284165a06de1e6c140db51b3dde6ad055b93c21e.tar.gz
Qt-284165a06de1e6c140db51b3dde6ad055b93c21e.tar.bz2
remove redundant variable
Diffstat (limited to 'src/script/api/qscriptvalue.cpp')
-rw-r--r--src/script/api/qscriptvalue.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/script/api/qscriptvalue.cpp b/src/script/api/qscriptvalue.cpp
index edcb6ac..559d532 100644
--- a/src/script/api/qscriptvalue.cpp
+++ b/src/script/api/qscriptvalue.cpp
@@ -275,7 +275,7 @@ qsreal ToInteger(qsreal n)
} // namespace QScript
-QScriptValuePrivate::QScriptValuePrivate() : engine(this), valid(true)
+QScriptValuePrivate::QScriptValuePrivate() : engine(this)
{
ref = 0;
}
@@ -2430,10 +2430,7 @@ bool QScriptValue::isQMetaObject() const
bool QScriptValue::isValid() const
{
Q_D(const QScriptValue);
- if (d)
- return d->isValid();
- else
- return false;
+ return d && (!d->isJSC() || !!d->jscValue);
}
/*!