diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-03 20:46:36 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-03 20:46:36 +0000 |
commit | 82dafa4f1dd607561f6852c50c15b03977389dc2 (patch) | |
tree | 841cb1f4d8e74879084089c481e53d834af86218 /core/fpdfapi/page/cpdf_function.h | |
parent | a0aef45d9181aee30198fdb87557d61f62ad2a7c (diff) | |
download | pdfium-82dafa4f1dd607561f6852c50c15b03977389dc2.tar.xz |
Use std::vector<float> in CPDF_Function.
Change-Id: Ia994118f93f34b5c0c2f2f5ddfd70fe11e9ec549
Reviewed-on: https://pdfium-review.googlesource.com/37010
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_function.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_function.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/core/fpdfapi/page/cpdf_function.h b/core/fpdfapi/page/cpdf_function.h index c2f2a4bb4e..5f4e125fa5 100644 --- a/core/fpdfapi/page/cpdf_function.h +++ b/core/fpdfapi/page/cpdf_function.h @@ -9,6 +9,7 @@ #include <memory> #include <set> +#include <vector> class CPDF_ExpIntFunc; class CPDF_Object; @@ -36,8 +37,8 @@ class CPDF_Function { int* nresults) const; uint32_t CountInputs() const { return m_nInputs; } uint32_t CountOutputs() const { return m_nOutputs; } - float GetDomain(int i) const { return m_pDomains[i]; } - float GetRange(int i) const { return m_pRanges[i]; } + float GetDomain(int i) const { return m_Domains[i]; } + float GetRange(int i) const { return m_Ranges[i]; } float Interpolate(float x, float xmin, float xmax, @@ -59,13 +60,11 @@ class CPDF_Function { std::set<const CPDF_Object*>* pVisited) = 0; virtual bool v_Call(const float* inputs, float* results) const = 0; + const Type m_Type; uint32_t m_nInputs; uint32_t m_nOutputs; - float* m_pDomains; - float* m_pRanges; - - private: - const Type m_Type; + std::vector<float> m_Domains; + std::vector<float> m_Ranges; }; #endif // CORE_FPDFAPI_PAGE_CPDF_FUNCTION_H_ |