]> git.mxchange.org Git - simgear.git/commitdiff
SGConditionRef typedef. No functional changes.
authorThomas Geymayer <tomgey@gmail.com>
Sun, 22 Jun 2014 13:35:31 +0000 (15:35 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 22 Jun 2014 13:35:31 +0000 (15:35 +0200)
simgear/props/condition.cxx
simgear/props/condition.hxx

index 04b892e53558bdc0b9bfa4f7aca07d7b974434b2..1da575a4dbfe3c51623f59fc8633f5ed627ac373 100644 (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;
 };
 
 
index 128cdfaf0c85fd374c723616af6335712a2c9f12..4341c2397e77bd5aa9768f679f980b2f5a0f68c7 100644 (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;
 };