Skip to content

v0.2.55..v0.2.56 changeset ElementIdJs.h

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/hoot-js/src/main/cpp/hoot/js/elements/ElementIdJs.h b/hoot-js/src/main/cpp/hoot/js/elements/ElementIdJs.h
index e236bb6..fb5b12e 100644
--- a/hoot-js/src/main/cpp/hoot/js/elements/ElementIdJs.h
+++ b/hoot-js/src/main/cpp/hoot/js/elements/ElementIdJs.h
@@ -28,20 +28,18 @@
 #define __ELEMENT_ID_JS_H__
 
 // hoot
+#include <hoot/js/HootBaseJs.h>
 #include <hoot/js/elements/ElementIdJs.h>
 #include <hoot/js/io/DataConvertJs.h>
 #include <hoot/js/util/PopulateConsumersJs.h>
 
-// node.js
-#include <hoot/js/SystemNodeJs.h>
-
 // Qt
 #include <QString>
 
 namespace hoot
 {
 
-class ElementIdJs : public node::ObjectWrap
+class ElementIdJs : public HootBaseJs
 {
 public:
 
@@ -51,10 +49,11 @@ public:
 
   static v8::Handle<v8::Object> New(ElementId eid);
 
+  virtual ~ElementIdJs() = default;
+
 private:
 
-  ElementIdJs();
-  ~ElementIdJs();
+  ElementIdJs() = default;
 
   static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
 
Clone this wiki locally