diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-21 21:57:35 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-21 21:57:35 +0000 |
commit | b06d3f8d7658eeab6624f66aef690a7f4b44936e (patch) | |
tree | 7780958ea43c869938dfd538ecb3e53ffbf2c723 /xfa/fxfa/parser/cxfa_occurdata.h | |
parent | 36261b631e1847bcfdda6d381ae414c954d73e88 (diff) | |
download | pdfium-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.h | 10 |
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_ |