Some clang fixes. Not all yet.

This commit is contained in:
Rudolf Polzer 2014-02-13 17:13:24 +01:00
parent dc9f838f57
commit e3251259ad
2 changed files with 23 additions and 10 deletions

View File

@ -33,6 +33,8 @@ class UndoMemento
{ {
public: public:
virtual void release() = 0; virtual void release() = 0;
virtual ~UndoMemento() {
}
}; };
class Undoable class Undoable
@ -40,12 +42,16 @@ class Undoable
public: public:
virtual UndoMemento* exportState() const = 0; virtual UndoMemento* exportState() const = 0;
virtual void importState( const UndoMemento* state ) = 0; virtual void importState( const UndoMemento* state ) = 0;
virtual ~Undoable() {
}
}; };
class UndoObserver class UndoObserver
{ {
public: public:
virtual void save( Undoable* undoable ) = 0; virtual void save( Undoable* undoable ) = 0;
virtual ~UndoObserver() {
}
}; };
class UndoTracker class UndoTracker
@ -55,6 +61,8 @@ virtual void clear() = 0;
virtual void begin() = 0; virtual void begin() = 0;
virtual void undo() = 0; virtual void undo() = 0;
virtual void redo() = 0; virtual void redo() = 0;
virtual ~UndoTracker() {
}
}; };
class UndoSystem class UndoSystem
@ -75,6 +83,9 @@ virtual void clear() = 0;
virtual void trackerAttach( UndoTracker& tracker ) = 0; virtual void trackerAttach( UndoTracker& tracker ) = 0;
virtual void trackerDetach( UndoTracker& tracker ) = 0; virtual void trackerDetach( UndoTracker& tracker ) = 0;
virtual ~UndoSystem() {
}
}; };
#include "modulesystem.h" #include "modulesystem.h"

View File

@ -166,6 +166,8 @@ class Symbiot
{ {
public: public:
virtual void release() = 0; virtual void release() = 0;
virtual ~Symbiot(){
}
}; };
private: private:
@ -223,8 +225,18 @@ bool visible(){
bool excluded(){ bool excluded(){
return ( m_state & eExcluded ) != 0; 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 class NullNode : public Node::Symbiot
{ {
NodeTypeCastTable m_casts; NodeTypeCastTable m_casts;
@ -276,16 +288,6 @@ inline TransformNode* Node_getTransformNode( scene::Node& node ){
return NodeTypeCast<TransformNode>::cast( node ); return NodeTypeCast<TransformNode>::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(){ inline scene::Node& NewNullNode(){
return ( new scene::NullNode )->node(); return ( new scene::NullNode )->node();