瀏覽代碼

Added missing include, made the destructor virtual to avoid undefined behaviour and eliminated the unnecessary EIGEN_MAKE_ALIGNED_OPERATOR_NEW.

Former-commit-id: 3ffc33c01fd570da28f0752ceb9e68a3f3667b04
Victor-Nicolae Savu 11 年之前
父節點
當前提交
3fbd94d176
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      include/igl/viewer/ViewerPlugin.h

+ 3 - 5
include/igl/viewer/ViewerPlugin.h

@@ -8,7 +8,7 @@
 
 #ifndef IGL_VIEWER_PLUGIN_H
 #define IGL_VIEWER_PLUGIN_H
-
+#include <string>
 #include <igl/igl_inline.h>
 
 #ifdef ENABLE_XML_SERIALIZATION
@@ -39,9 +39,9 @@ public:
   #ifdef ENABLE_XML_SERIALIZATION
   : XMLSerialization("dummy")
   #endif
-  {plugin_name = "dummy";};
+  {plugin_name = "dummy";}
 
-  ~ViewerPlugin(){};
+  virtual ~ViewerPlugin(){}
 
   // This function is called when the viewer is initialized (no mesh will be loaded at this stage)
   IGL_INLINE virtual void init(igl::Viewer *_viewer)
@@ -132,8 +132,6 @@ public:
 protected:
   // Pointer to the main Preview3D class
   Viewer *viewer;
-public:
-    EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 };
 
 }