X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=libs%2Fscenelib.h;h=29402065252cf7c8f2cb4d040d244e48d2e67427;hp=2b4b6007bb45fd69aa6bcc37ca5e9afc53a2e9ae;hb=a5b337c0c2fb423c8fc96a3955f7f7eba75c2f01;hpb=3c73487420fde8d4a3b5360d8b99e48132517900 diff --git a/libs/scenelib.h b/libs/scenelib.h index 2b4b6007..29402065 100644 --- a/libs/scenelib.h +++ b/libs/scenelib.h @@ -166,6 +166,8 @@ class Symbiot { public: virtual void release() = 0; +virtual ~Symbiot(){ +} }; private: @@ -223,8 +225,18 @@ bool visible(){ bool excluded(){ return ( m_state & eExcluded ) != 0; } +bool operator<( const scene::Node& other ){ + return this < &other; +} +bool operator==( const scene::Node& other ){ + return this == &other; +} +bool operator!=( const scene::Node& other ){ + return this != &other; +} }; + class NullNode : public Node::Symbiot { NodeTypeCastTable m_casts; @@ -276,16 +288,6 @@ inline TransformNode* Node_getTransformNode( scene::Node& node ){ return NodeTypeCast::cast( node ); } -inline bool operator<( scene::Node& node, scene::Node& other ){ - return &node < &other; -} -inline bool operator==( scene::Node& node, scene::Node& other ){ - return &node == &other; -} -inline bool operator!=( scene::Node& node, scene::Node& other ){ - return !::operator==( node, other ); -} - inline scene::Node& NewNullNode(){ return ( new scene::NullNode )->node();