summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_psfunc.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-10 20:50:52 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-10 20:50:52 +0000
commitf42d570492e881600d6b0692fb2fe0c0ec89e181 (patch)
tree003f2d8381d3db5816e1a50dd9abe25188897279 /core/fpdfapi/page/cpdf_psfunc.h
parent994d8b4e363bb86128593a9000a17b0e79f849f5 (diff)
downloadpdfium-f42d570492e881600d6b0692fb2fe0c0ec89e181.tar.xz
Make CPDF_PSFunc::m_PS mutable.
Preferred over const_cast<> to show how that state is used. Change-Id: Ia6fe6bf46fb7fa8e701481b1604073b5d7f222fa Reviewed-on: https://pdfium-review.googlesource.com/39870 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_psfunc.h')
-rw-r--r--core/fpdfapi/page/cpdf_psfunc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_psfunc.h b/core/fpdfapi/page/cpdf_psfunc.h
index 459da5a599..1274c21d50 100644
--- a/core/fpdfapi/page/cpdf_psfunc.h
+++ b/core/fpdfapi/page/cpdf_psfunc.h
@@ -25,7 +25,7 @@ class CPDF_PSFunc : public CPDF_Function {
bool v_Call(const float* inputs, float* results) const override;
private:
- CPDF_PSEngine m_PS;
+ mutable CPDF_PSEngine m_PS; // Pre-initialized scratch space for v_Call().
};
#endif // CORE_FPDFAPI_PAGE_CPDF_PSFUNC_H_