Skip to content

v0.2.48..v0.2.49 changeset OrCriterion.h

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/OrCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/OrCriterion.h
index 9df8ef2..68e9a94 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/OrCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/OrCriterion.h
@@ -41,22 +41,17 @@ public:
 
   static std::string className() { return "hoot::OrCriterion"; }
 
-  OrCriterion() {}
-  OrCriterion(ElementCriterion* child1, ElementCriterion* child2) :
-    ChainCriterion(child1, child2)
-  {
-  }
-  OrCriterion(ElementCriterionPtr child1, ElementCriterionPtr child2) :
-    ChainCriterion(child1, child2)
-  {
-  }
+  OrCriterion();
+  OrCriterion(ElementCriterion* child1, ElementCriterion* child2);
+  OrCriterion(ElementCriterionPtr child1, ElementCriterionPtr child2);
 
   virtual bool isSatisfied(const ConstElementPtr& e) const override;
 
-  virtual ElementCriterionPtr clone()
-  { return ElementCriterionPtr(new OrCriterion(_criteria[0]->clone(), _criteria[1]->clone())); }
+  virtual ElementCriterionPtr clone();
 
   virtual QString getDescription() const { return "Allows for combining criteria (logical OR )"; }
+
+  virtual QString toString() const override;
 };
 
 }
Clone this wiki locally