summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_occurdata.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-21 21:57:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-21 21:57:35 +0000
commitb06d3f8d7658eeab6624f66aef690a7f4b44936e (patch)
tree7780958ea43c869938dfd538ecb3e53ffbf2c723 /xfa/fxfa/parser/cxfa_occurdata.h
parent36261b631e1847bcfdda6d381ae414c954d73e88 (diff)
downloadpdfium-b06d3f8d7658eeab6624f66aef690a7f4b44936e.tar.xz
Cleanup CXFA_OccurData
Make methods const, use return instead of out params. Change-Id: Idfdae8df5cd74ba0bce08c05a6fc34b168d25f79 Reviewed-on: https://pdfium-review.googlesource.com/19050 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_occurdata.h')
-rw-r--r--xfa/fxfa/parser/cxfa_occurdata.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_occurdata.h b/xfa/fxfa/parser/cxfa_occurdata.h
index 4ce7bda319..7c90a1993b 100644
--- a/xfa/fxfa/parser/cxfa_occurdata.h
+++ b/xfa/fxfa/parser/cxfa_occurdata.h
@@ -7,6 +7,8 @@
#ifndef XFA_FXFA_PARSER_CXFA_OCCURDATA_H_
#define XFA_FXFA_PARSER_CXFA_OCCURDATA_H_
+#include <tuple>
+
#include "core/fxcrt/fx_system.h"
#include "xfa/fxfa/parser/cxfa_datadata.h"
@@ -16,11 +18,13 @@ class CXFA_OccurData : public CXFA_DataData {
public:
explicit CXFA_OccurData(CXFA_Node* pNode);
- int32_t GetMax();
- int32_t GetMin();
- bool GetOccurInfo(int32_t& iMin, int32_t& iMax, int32_t& iInit);
+ int32_t GetMax() const;
void SetMax(int32_t iMax);
+
+ int32_t GetMin() const;
void SetMin(int32_t iMin);
+
+ std::tuple<int32_t, int32_t, int32_t> GetOccurInfo() const;
};
#endif // XFA_FXFA_PARSER_CXFA_OCCURDATA_H_