]> git.mxchange.org Git - simgear.git/commit
Cleanup of properties
authortimoore <timoore>
Wed, 15 Jul 2009 23:07:45 +0000 (23:07 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 16 Jul 2009 10:09:43 +0000 (12:09 +0200)
commit5bd2d47571f2b9b2bc91b6a461c24d15c77b62ce
treecd02c581826d3f1a749823633e0bed157f8db7c6
parentf8e475cd34ec1d7e87bf788585ffaa141ac490cc
Cleanup of properties

Change most uses of the SGPropertyNode _value union to use static_cast.

Move SGPropertyNode::Type out of the class into simgear::props namespace. Add
a PropertyTraits class so that templates can calculate the property type tag
based on a C++ type.

In destructor, delete _value.val if it is not 0 (and the property is not
aliased).
simgear/props/condition.cxx
simgear/props/props.cxx
simgear/props/props.hxx
simgear/props/props_io.cxx