summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_occur.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/xfa/cjx_occur.cpp')
-rw-r--r--fxjs/xfa/cjx_occur.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/fxjs/xfa/cjx_occur.cpp b/fxjs/xfa/cjx_occur.cpp
index f5540c0c7a..f57cd96cb5 100644
--- a/fxjs/xfa/cjx_occur.cpp
+++ b/fxjs/xfa/cjx_occur.cpp
@@ -10,7 +10,6 @@
#include "fxjs/cfxjse_value.h"
#include "xfa/fxfa/parser/cxfa_occur.h"
-#include "xfa/fxfa/parser/cxfa_occurdata.h"
CJX_Occur::CJX_Occur(CXFA_Occur* node) : CJX_Node(node) {}
@@ -19,23 +18,23 @@ CJX_Occur::~CJX_Occur() = default;
void CJX_Occur::max(CFXJSE_Value* pValue,
bool bSetting,
XFA_Attribute eAttribute) {
- CXFA_OccurData occurData(GetXFANode());
+ CXFA_Occur* occur = static_cast<CXFA_Occur*>(GetXFANode());
if (!bSetting) {
- pValue->SetInteger(occurData.GetMax());
+ pValue->SetInteger(occur->GetMax());
return;
}
- occurData.SetMax(pValue->ToInteger());
+ occur->SetMax(pValue->ToInteger());
}
void CJX_Occur::min(CFXJSE_Value* pValue,
bool bSetting,
XFA_Attribute eAttribute) {
- CXFA_OccurData occurData(GetXFANode());
+ CXFA_Occur* occur = static_cast<CXFA_Occur*>(GetXFANode());
if (!bSetting) {
- pValue->SetInteger(occurData.GetMin());
+ pValue->SetInteger(occur->GetMin());
return;
}
- occurData.SetMin(pValue->ToInteger());
+ occur->SetMin(pValue->ToInteger());
}
void CJX_Occur::use(CFXJSE_Value* pValue,