Skip to content

v0.2.55..v0.2.56 changeset ElementCriterionJs.h

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/hoot-js/src/main/cpp/hoot/js/criterion/ElementCriterionJs.h b/hoot-js/src/main/cpp/hoot/js/criterion/ElementCriterionJs.h
index 6bd911e..7402a8f 100644
--- a/hoot-js/src/main/cpp/hoot/js/criterion/ElementCriterionJs.h
+++ b/hoot-js/src/main/cpp/hoot/js/criterion/ElementCriterionJs.h
@@ -22,16 +22,14 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef ELEMENTCRITERIONJS_H
 #define ELEMENTCRITERIONJS_H
 
 // hoot
 #include <hoot/core/criterion/ElementCriterion.h>
-
-// node.js
-#include <hoot/js/SystemNodeJs.h>
+#include <hoot/js/HootBaseJs.h>
 
 // Qt
 #include <QString>
@@ -39,7 +37,7 @@
 namespace hoot
 {
 
-class ElementCriterionJs : public node::ObjectWrap
+class ElementCriterionJs : public HootBaseJs
 {
 public:
 
@@ -47,10 +45,11 @@ public:
 
   ElementCriterionPtr getCriterion() { return _c; }
 
+  virtual ~ElementCriterionJs() = default;
+
 private:
 
-  ElementCriterionJs(ElementCriterion* c);
-  ~ElementCriterionJs();
+  ElementCriterionJs(ElementCriterion* c) : _c(c) { }
 
   static void addCriterion(const v8::FunctionCallbackInfo<v8::Value>& args);
   static void isSatisfied(const v8::FunctionCallbackInfo<v8::Value>& args);
Clone this wiki locally