Index: xfa/src/fxfa/src/fm2js/xfa_fmparse.h |
diff --git a/xfa/src/fxfa/src/fm2js/xfa_fmparse.h b/xfa/src/fxfa/src/fm2js/xfa_fmparse.h |
index 45cd3db647116e8b0432e136911f31e1aff4d52e..ed950c5aa4a706d56369da25a4bda0bfb2d8664a 100644 |
--- a/xfa/src/fxfa/src/fm2js/xfa_fmparse.h |
+++ b/xfa/src/fxfa/src/fm2js/xfa_fmparse.h |
@@ -6,10 +6,14 @@ |
#ifndef _XFA_FM_PARSE_H |
#define _XFA_FM_PARSE_H |
+ |
+#include <memory> |
+ |
+#include "xfa/src/fxfa/src/fm2js/xfa_lexer.h" |
+ |
class CXFA_FMParse { |
public: |
CXFA_FMParse(); |
- ~CXFA_FMParse(); |
int32_t Init(const CFX_WideStringC& wsFormcalc, CXFA_FMErrorInfo* pErrorInfo); |
void NextToken(); |
void Check(XFA_FM_TOKEN op); |
@@ -40,10 +44,9 @@ class CXFA_FMParse { |
CXFA_FMSimpleExpression* ParseIndexExpression(); |
private: |
- const FX_WCHAR* m_pScript; |
- FX_STRSIZE m_uLength; |
- CXFA_FMLexer* m_lexer; |
+ std::unique_ptr<CXFA_FMLexer> m_lexer; |
CXFA_FMToken* m_pToken; |
CXFA_FMErrorInfo* m_pErrorInfo; |
}; |
+ |
#endif |