summaryrefslogtreecommitdiff
path: root/include/class.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-13 16:18:56 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-13 16:18:56 +0100
commit40287b042fc252dbf348ae386cf3c9e3cab95d63 (patch)
tree88d737321ad81d0c643e91c81d5805a273024152 /include/class.h
parent1a8c587f3a67db2e5c38cc525b29800e86f27936 (diff)
update documentation, fixed __compare() method
Diffstat (limited to 'include/class.h')
-rw-r--r--include/class.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/class.h b/include/class.h
index 6fd938c..7e748cf 100644
--- a/include/class.h
+++ b/include/class.h
@@ -436,7 +436,7 @@ private:
* @return bool
*/
virtual bool callIsset(Base *base, const Value &name) const override
- {
+ {
// cast to actual object
T *obj = (T *)base;
@@ -457,11 +457,7 @@ private:
T *t2 = (T *)object2;
// compare the two objects
- if (*t1 < *t2) return -1;
- if (*t2 < *t1) return 1;
-
- // they must be identical
- return 0;
+ return t1->__compare(*t2);
}
/**