diff --git a/hoot-js/src/main/cpp/hoot/js/v8Engine.h b/hoot-js/src/main/cpp/hoot/js/v8Engine.h
index 8d7dbb5..4c7829c 100644
--- a/hoot-js/src/main/cpp/hoot/js/v8Engine.h
+++ b/hoot-js/src/main/cpp/hoot/js/v8Engine.h
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#ifndef V8ENGINE_H
#define V8ENGINE_H
@@ -51,22 +51,20 @@ public:
*/
void init() {}
- ~v8Engine();
-
static v8::Isolate* getIsolate();
static void setPlatformInit(bool needsPlatform = true);
private:
- /** static pointer to the singleton instance */
- static std::shared_ptr<v8Engine> _theInstance;
/** static flag for platform initialization */
static bool _needPlatform;
- /**
- * @brief v8Engine - private constructor
- */
+ /** private constructor/destructor */
v8Engine();
+ ~v8Engine();
+ /** Delete copy constructor and assignment operator */
+ v8Engine(const v8Engine&) = delete;
+ v8Engine& operator=(const v8Engine&) = delete;
/** Creation parameters allocator for main isolate */
std::shared_ptr<v8::ArrayBuffer::Allocator> _allocator;