SGConditionRef typedef. No functional changes.

This commit is contained in:
Thomas Geymayer 2014-06-22 15:35:31 +02:00
parent bd9fa7017f
commit 645cae184b
2 changed files with 6 additions and 4 deletions

View File

@ -69,7 +69,7 @@ public:
virtual bool test () const;
virtual void collectDependentProperties(std::set<const SGPropertyNode*>& props) const;
private:
SGSharedPtr<SGCondition> _condition;
SGConditionRef _condition;
};
@ -89,7 +89,7 @@ public:
virtual void addCondition (SGCondition * condition);
virtual void collectDependentProperties(std::set<const SGPropertyNode*>& props) const;
private:
std::vector<SGSharedPtr<SGCondition> > _conditions;
std::vector<SGConditionRef> _conditions;
};
@ -109,7 +109,7 @@ public:
virtual void addCondition (SGCondition * condition);
virtual void collectDependentProperties(std::set<const SGPropertyNode*>& props) const;
private:
std::vector<SGSharedPtr<SGCondition> > _conditions;
std::vector<SGConditionRef> _conditions;
};

View File

@ -38,6 +38,8 @@ public:
virtual void collectDependentProperties(std::set<const SGPropertyNode*>& props) const { }
};
typedef SGSharedPtr<SGCondition> SGConditionRef;
/**
* Base class for a conditional components.
@ -56,7 +58,7 @@ public:
virtual const SGCondition * getCondition () const { return _condition; }
virtual bool test () const;
private:
SGSharedPtr<SGCondition> _condition;
SGConditionRef _condition;
};