Skip to content

v0.2.55..v0.2.56 changeset ContainsNodeCriterion.h

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/ContainsNodeCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/ContainsNodeCriterion.h
index 8ad2a6f..27e8022 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/ContainsNodeCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/ContainsNodeCriterion.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef CONTAINSNODECRITERION_H
 #define CONTAINSNODECRITERION_H
@@ -40,11 +40,11 @@ class ContainsNodeCriterion : public ElementCriterion, public Configurable
 {
 public:
 
-  ContainsNodeCriterion();
-
   static std::string className() { return "hoot::ContainsNodeCriterion"; }
 
-  explicit ContainsNodeCriterion(long nodeId);
+  ContainsNodeCriterion() = default;
+  explicit ContainsNodeCriterion(long nodeId) : _nodeId(nodeId) { }
+  virtual ~ContainsNodeCriterion() = default;
 
   virtual bool isSatisfied(const ConstElementPtr& e) const override;
 
Clone this wiki locally