Skip to content

v0.2.55..v0.2.56 changeset FeatureExtractorJs.h

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/hoot-js/src/main/cpp/hoot/js/conflate/extractors/FeatureExtractorJs.h b/hoot-js/src/main/cpp/hoot/js/conflate/extractors/FeatureExtractorJs.h
index 4b60078..d8dcd9a 100644
--- a/hoot-js/src/main/cpp/hoot/js/conflate/extractors/FeatureExtractorJs.h
+++ b/hoot-js/src/main/cpp/hoot/js/conflate/extractors/FeatureExtractorJs.h
@@ -29,10 +29,8 @@
 
 // hoot
 #include <hoot/core/algorithms/extractors/FeatureExtractor.h>
-
-// node.js
+#include <hoot/js/HootBaseJs.h>
 #include <hoot/js/io/DataConvertJs.h>
-#include <hoot/js/SystemNodeJs.h>
 
 // Qt
 #include <QString>
@@ -45,7 +43,7 @@ namespace hoot
 
 class OsmMapOperation;
 
-class FeatureExtractorJs : public node::ObjectWrap
+class FeatureExtractorJs : public HootBaseJs
 {
 public:
 
@@ -53,10 +51,11 @@ public:
 
   FeatureExtractorPtr getFeatureExtractor() { return _fe; }
 
+  virtual ~FeatureExtractorJs() = default;
+
 private:
 
-  FeatureExtractorJs(FeatureExtractorPtr fe);
-  ~FeatureExtractorJs();
+  FeatureExtractorJs(FeatureExtractorPtr fe) : _fe(fe) { }
 
   static void extract(const v8::FunctionCallbackInfo<v8::Value>& args);
   static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
Clone this wiki locally