summaryrefslogtreecommitdiff
path: root/include/classbase.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/classbase.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/classbase.h')
-rw-r--r--include/classbase.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/classbase.h b/include/classbase.h
index 4e03f1c..f4a6f22 100644
--- a/include/classbase.h
+++ b/include/classbase.h
@@ -94,10 +94,10 @@ public:
ClassBase(const ClassBase &that) :
_name(that._name),
_type(that._type),
+ _entry(that._entry),
_methods(that._methods),
_members(that._members),
- _properties(that._properties),
- _entry(nullptr) {}
+ _properties(that._properties) {}
/**
* Move constructor
@@ -106,10 +106,10 @@ public:
ClassBase(ClassBase &&that) :
_name(std::move(that._name)),
_type(that._type),
+ _entry(that._entry),
_methods(std::move(that._methods)),
_members(std::move(that._members)),
- _properties(std::move(that._properties)),
- _entry(that._entry)
+ _properties(std::move(that._properties))
{
// other entry are invalid now (not that it is used..., class objects are
// only moved during extension setup, when the entry pointer has not yet