diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-01 16:39:52 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-01 16:39:52 +0200 |
commit | 61ded13eaa25b332208cd659c5c844890db0cb57 (patch) | |
tree | c50f5319fc975faf80e3a7a41a9b8cdb36656bec /include/global.h | |
parent | 777949f8751ded6e56140bb513c6b93e4d5c3f08 (diff) |
much simpler implementation of hash member, i do not understand why i first used this complicated zval wrapping implementation, fixes problems reported in issue #56
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/global.h b/include/global.h index 4531f77..ae54212 100644 --- a/include/global.h +++ b/include/global.h @@ -106,13 +106,13 @@ public: * @param value Value to set * @return Value The value that was set */ - virtual const Value &set(int index, const Value &value) override + virtual void set(int index, const Value &value) override { // update current object update(); // call base - return Value::set(index, value); + Value::set(index, value); } /** @@ -123,13 +123,13 @@ public: * @param value Value to set * @return Value The value that was set */ - virtual const Value &set(const char *key, int size, const Value &value) override + virtual void set(const char *key, int size, const Value &value) override { // update current object update(); // call base - return Value::set(key, size, value); + Value::set(key, size, value); } |