From e43e54a357adcb32a7e13e9a1efb9deaa76a1d26 Mon Sep 17 00:00:00 2001 From: Jedrzej Nowacki Date: Tue, 18 Aug 2009 17:20:10 +0200 Subject: 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 --- src/script/api/qscriptvalue_p.h | 9 ++------- 1 file 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: -- cgit v0.12