summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_class.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cfxjse_class.h')
-rw-r--r--fxjs/cfxjse_class.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/fxjs/cfxjse_class.h b/fxjs/cfxjse_class.h
index 04354941fa..c3a5c84777 100644
--- a/fxjs/cfxjse_class.h
+++ b/fxjs/cfxjse_class.h
@@ -7,6 +7,7 @@
#ifndef FXJS_CFXJSE_CLASS_H_
#define FXJS_CFXJSE_CLASS_H_
+#include "core/fxcrt/cfx_unowned_ptr.h"
#include "fxjs/fxjse.h"
#include "v8/include/v8.h"
@@ -27,13 +28,13 @@ class CFXJSE_Class {
explicit CFXJSE_Class(CFXJSE_Context* lpContext);
~CFXJSE_Class();
- CFXJSE_Context* GetContext() const { return m_pContext; }
+ CFXJSE_Context* GetContext() const { return m_pContext.Get(); }
v8::Global<v8::FunctionTemplate>& GetTemplate() { return m_hTemplate; }
protected:
CFX_ByteString m_szClassName;
- const FXJSE_CLASS_DESCRIPTOR* m_lpClassDefinition;
- CFXJSE_Context* m_pContext;
+ CFX_UnownedPtr<const FXJSE_CLASS_DESCRIPTOR> m_lpClassDefinition;
+ CFX_UnownedPtr<CFXJSE_Context> m_pContext;
v8::Global<v8::FunctionTemplate> m_hTemplate;
friend class CFXJSE_Context;
friend class CFXJSE_Value;