diff options
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_ |