diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 15:49:55 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 15:49:55 +0100 |
commit | 51f4788b2b51a21894ae49821abc67c2fab4a68a (patch) | |
tree | f7942b5dd9d33f511fb8d09df23519c51fb2e515 /include/classbase.h | |
parent | 41bd759f31d625b5f73dd3a31d76a91efbde8ad7 (diff) |
fixed settings Base::_self variable to a valid, editable value object
Diffstat (limited to 'include/classbase.h')
-rw-r--r-- | include/classbase.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/classbase.h b/include/classbase.h index a9d9ef5..e664105 100644 --- a/include/classbase.h +++ b/include/classbase.h @@ -79,16 +79,17 @@ public: /** * Construct a new instance of the object + * @param value * @return Base */ - Base* construct(struct _zend_object *object) + Base* construct(Value &&value) { // construct the base auto *result = construct(); if (!result) return nullptr; // assign the zend object to it - result->assign(object); + result->assign(std::move(value)); // done return result; |