summaryrefslogtreecommitdiffstats
path: root/src/script/api
diff options
context:
space:
mode:
authorJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-18 15:20:10 (GMT)
committerJedrzej Nowacki <jedrzej.nowacki@nokia.com>2009-08-19 08:29:42 (GMT)
commite43e54a357adcb32a7e13e9a1efb9deaa76a1d26 (patch)
treebc7b4b7b6a00647b025c439170afeb2899dd0749 /src/script/api
parentf92e8dd88909200418985c519dab08023d73dc0c (diff)
downloadQt-e43e54a357adcb32a7e13e9a1efb9deaa76a1d26.zip
Qt-e43e54a357adcb32a7e13e9a1efb9deaa76a1d26.tar.gz
Qt-e43e54a357adcb32a7e13e9a1efb9deaa76a1d26.tar.bz2
Fix potential building problem.
Comparison between pointer and int where removed. According to doc operator-> where created (class QScriptValueAutoRegister suppose to behave as pointer). Reviewed-by: Kent Hansen
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/qscriptvalue_p.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/script/api/qscriptvalue_p.h b/src/script/api/qscriptvalue_p.h
index b19435c..7090916 100644
--- a/src/script/api/qscriptvalue_p.h
+++ b/src/script/api/qscriptvalue_p.h
@@ -93,14 +93,9 @@ class QScriptValuePrivate
return ptr;
}
- bool operator==(const int i) const
+ QScriptEngine* operator->()
{
- return ptr == (void *)i;
- }
-
- bool operator!=(const int i) const
- {
- return ptr != (void *)i;
+ return ptr;
}
private: