summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-01 16:39:52 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-01 16:39:52 +0200
commit61ded13eaa25b332208cd659c5c844890db0cb57 (patch)
treec50f5319fc975faf80e3a7a41a9b8cdb36656bec /include/global.h
parent777949f8751ded6e56140bb513c6b93e4d5c3f08 (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.h8
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);
}