Index: fxjs/cfxjse_runtimedata.h |
diff --git a/fxjs/cfxjse_runtimedata.h b/fxjs/cfxjse_runtimedata.h |
index 34f8f32d921bf9e90abd61ca4c97b36b8fbcb94b..292fe26ae335225eb435c29ac62b67eb3a44890c 100644 |
--- a/fxjs/cfxjse_runtimedata.h |
+++ b/fxjs/cfxjse_runtimedata.h |
@@ -7,6 +7,8 @@ |
#ifndef FXJS_CFXJSE_RUNTIMEDATA_H_ |
#define FXJS_CFXJSE_RUNTIMEDATA_H_ |
+#include <memory> |
+ |
#include "v8/include/v8.h" |
class CFXJSE_RuntimeList; |
@@ -24,7 +26,7 @@ class CFXJSE_RuntimeData { |
protected: |
explicit CFXJSE_RuntimeData(v8::Isolate* pIsolate); |
- static CFXJSE_RuntimeData* Create(v8::Isolate* pIsolate); |
+ static std::unique_ptr<CFXJSE_RuntimeData> Create(v8::Isolate* pIsolate); |
private: |
CFXJSE_RuntimeData(const CFXJSE_RuntimeData&) = delete; |