]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/condition.hxx
Fix #1783: repeated error message on console
[simgear.git] / simgear / props / condition.hxx
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;
 };