X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=libs%2Fscenelib.h;h=29402065252cf7c8f2cb4d040d244e48d2e67427;hb=83e50e744e5f74521cb5b1507f369ee5014f7397;hp=2b4b6007bb45fd69aa6bcc37ca5e9afc53a2e9ae;hpb=b7e36c120eb1546a6c6f97f30e42ab7f9a559c61;p=xonotic%2Fnetradiant.git 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();