diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-20 16:14:05 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-20 16:14:05 (GMT) |
commit | 284165a06de1e6c140db51b3dde6ad055b93c21e (patch) | |
tree | f44653698150c910f471de7d874faabfd9388c86 /src/script/api/qscriptvalue_p.h | |
parent | ae0a1979c309be110ee65a1ca82b94f48848b11e (diff) | |
download | Qt-284165a06de1e6c140db51b3dde6ad055b93c21e.zip Qt-284165a06de1e6c140db51b3dde6ad055b93c21e.tar.gz Qt-284165a06de1e6c140db51b3dde6ad055b93c21e.tar.bz2 |
remove redundant variable
Diffstat (limited to 'src/script/api/qscriptvalue_p.h')
-rw-r--r-- | src/script/api/qscriptvalue_p.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/script/api/qscriptvalue_p.h b/src/script/api/qscriptvalue_p.h index 71bff07..9456ace 100644 --- a/src/script/api/qscriptvalue_p.h +++ b/src/script/api/qscriptvalue_p.h @@ -139,13 +139,11 @@ public: QScriptValue property(quint32 index, int resolveMode) const; QScriptValue property(const QString &, int resolveMode) const; - bool isValid() const {return valid;} void detachEngine() { // if type is not developed in js engine there is no // need to invalidate the object if (isJSC()) { - valid = false; jscValue = JSC::JSValue(); } engine = 0; @@ -153,7 +151,7 @@ public: qint64 objectId() { - if ( (type == JSC) && (valid) && (engine) ) + if ( (type == JSC) && (engine) ) return (qint64)jscValue.asCell(); else return -1; @@ -169,8 +167,6 @@ public: QString stringValue; QBasicAtomicInt ref; - bool valid; //object is valid ? - }; |