Index: fpdfsdk/include/javascript/IJavaScript.h |
diff --git a/fpdfsdk/include/javascript/IJavaScript.h b/fpdfsdk/include/javascript/IJavaScript.h |
index d2cbfb1dd8af87bf53a498287fb01657ef1b0ed3..9c232b01fbdf4058854ee91f53b50ee72cc7b18d 100644 |
--- a/fpdfsdk/include/javascript/IJavaScript.h |
+++ b/fpdfsdk/include/javascript/IJavaScript.h |
@@ -18,7 +18,6 @@ class CPDFSDK_Document; |
class IFXJS_Context { |
public: |
- virtual ~IFXJS_Context() {} |
virtual FX_BOOL Compile(const CFX_WideString& script, |
CFX_WideString& info) = 0; |
virtual FX_BOOL RunScript(const CFX_WideString& script, |
@@ -129,6 +128,9 @@ class IFXJS_Context { |
virtual void OnExternal_Exec() = 0; |
virtual void EnableMessageBox(FX_BOOL bEnable) = 0; |
+ |
+ protected: |
+ virtual ~IFXJS_Context() {} |
}; |
class IFXJS_Runtime { |
@@ -147,7 +149,7 @@ class IFXJS_Runtime { |
FXJSE_HVALUE hValue) = 0; |
protected: |
- ~IFXJS_Runtime() {} |
+ virtual ~IFXJS_Runtime() {} |
}; |
class CPDFDoc_Environment; |