summaryrefslogtreecommitdiff
path: root/include/classbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/classbase.h')
-rw-r--r--include/classbase.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/classbase.h b/include/classbase.h
index ad501ea..249122a 100644
--- a/include/classbase.h
+++ b/include/classbase.h
@@ -54,14 +54,17 @@ public:
* @todo prefer move
*/
ClassBase(const ClassBase &that) :
- _name(that._name), _type(that._type), _methods(that._methods), _members(that._members) {}
+ _name(that._name), _type(that._type), _methods(that._methods),
+ _members(that._members), _entry(nullptr) {}
/**
* Move constructor
* @param that
*/
ClassBase(ClassBase &&that) :
- _type(that._type), _methods(std::move(that._methods)), _members(std::move(that._members)), _entry(that._entry)
+ _name(std::move(that._name)), _type(that._type),
+ _methods(std::move(that._methods)), _members(std::move(that._members)),
+ _entry(that._entry)
{
// 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
@@ -165,6 +168,12 @@ private:
std::string _name;
/**
+ * The comment for reflexion, with a stored pointer to ourselves
+ * @var char*
+ */
+ char *_comment = nullptr;
+
+ /**
* The class type (this can be values like Php::Abstract and Php::Final)
* @var ClassType
*/