From 8cc678e2eeda0df0b80fd19b03712a626b0b7bd2 Mon Sep 17 00:00:00 2001 From: richiesams Date: Mon, 24 Jun 2013 14:45:51 -0500 Subject: ZVISION: Convert 'Object' implicit conversion operators to accessors Implicit conversion, while simple can cause problems and doesn't show exactly how to get the value. --- engines/zvision/object.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'engines/zvision/object.h') diff --git a/engines/zvision/object.h b/engines/zvision/object.h index b98b3812cd..4df572c2b1 100644 --- a/engines/zvision/object.h +++ b/engines/zvision/object.h @@ -97,15 +97,15 @@ public: Object& operator=(const Object &rhs); - operator bool(); - operator byte(); - operator int16(); - operator uint16(); - operator int32(); - operator uint32(); - operator float(); - operator double(); - operator Common::String(); + bool getBoolValue(bool *returnValue) const; + bool getByteValue(byte *returnValue) const; + bool getInt16Value(int16 *returnValue) const; + bool getUInt16Value(uint16 *returnValue) const; + bool getInt32Value(int32 *returnValue) const; + bool getUInt32Value(uint32 *returnValue) const; + bool getFloatValue(float *returnValue) const; + bool getDoubleValue(double *returnValue) const; + bool getStringValue(Common::String *returnValue) const; private: /** -- cgit v1.2.3