summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_function.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page/cpdf_function.h')
-rw-r--r--core/fpdfapi/page/cpdf_function.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/fpdfapi/page/cpdf_function.h b/core/fpdfapi/page/cpdf_function.h
index 82a3a54327..c2f2a4bb4e 100644
--- a/core/fpdfapi/page/cpdf_function.h
+++ b/core/fpdfapi/page/cpdf_function.h
@@ -25,7 +25,7 @@ class CPDF_Function {
kType4PostScript = 4,
};
- static std::unique_ptr<CPDF_Function> Load(CPDF_Object* pFuncObj);
+ static std::unique_ptr<CPDF_Function> Load(const CPDF_Object* pFuncObj);
static Type IntegerToFunctionType(int iType);
virtual ~CPDF_Function();
@@ -51,10 +51,12 @@ class CPDF_Function {
protected:
explicit CPDF_Function(Type type);
- static std::unique_ptr<CPDF_Function> Load(CPDF_Object* pFuncObj,
- std::set<CPDF_Object*>* pVisited);
- bool Init(CPDF_Object* pObj, std::set<CPDF_Object*>* pVisited);
- virtual bool v_Init(CPDF_Object* pObj, std::set<CPDF_Object*>* pVisited) = 0;
+ static std::unique_ptr<CPDF_Function> Load(
+ const CPDF_Object* pFuncObj,
+ std::set<const CPDF_Object*>* pVisited);
+ bool Init(const CPDF_Object* pObj, std::set<const CPDF_Object*>* pVisited);
+ virtual bool v_Init(const CPDF_Object* pObj,
+ std::set<const CPDF_Object*>* pVisited) = 0;
virtual bool v_Call(const float* inputs, float* results) const = 0;
uint32_t m_nInputs;