From: James Turner Date: Sun, 30 Oct 2011 07:55:29 +0000 (+0000) Subject: Enhancements to property-object support, add a default ctor and some typedefs. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e9896a9abb0889407491a6dfb036ae5f7079287;p=simgear.git Enhancements to property-object support, add a default ctor and some typedefs. --- diff --git a/simgear/props/propertyObject.cxx b/simgear/props/propertyObject.cxx index df3f81f9..ff87898e 100644 --- a/simgear/props/propertyObject.cxx +++ b/simgear/props/propertyObject.cxx @@ -34,6 +34,13 @@ void PropertyObjectBase::setDefaultRoot(SGPropertyNode* aRoot) { static_defaultRoot = aRoot; } + +PropertyObjectBase::PropertyObjectBase() : + _path(NULL), + _prop(NULL) +{ + +} PropertyObjectBase::PropertyObjectBase(const PropertyObjectBase& aOther) : _path(aOther._path), diff --git a/simgear/props/propertyObject.hxx b/simgear/props/propertyObject.hxx index 5cc1588b..a6d357f8 100644 --- a/simgear/props/propertyObject.hxx +++ b/simgear/props/propertyObject.hxx @@ -28,6 +28,8 @@ class PropertyObjectBase public: static void setDefaultRoot(SGPropertyNode* aRoot); + PropertyObjectBase(); + PropertyObjectBase(const PropertyObjectBase& aOther); PropertyObjectBase(const char* aChild); @@ -57,6 +59,8 @@ template class PropertyObject : PropertyObjectBase { public: + PropertyObject(); + /** * Create from path relative to the default root, and option default value */ @@ -220,11 +224,9 @@ private: } // of namespace simgear -/* typedef simgear::PropertyObject SGPropObjDouble; typedef simgear::PropertyObject SGPropObjBool; typedef simgear::PropertyObject SGPropObjString; typedef simgear::PropertyObject SGPropObjInt; -*/ #endif