summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_shadingpattern.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-22 20:30:39 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-22 20:30:39 +0000
commit0fe8910834a14fd79593dc4726e282d284417221 (patch)
tree9decc7996d77643438d84ec4de9cc1223e6418f9 /core/fpdfapi/page/cpdf_shadingpattern.h
parent7f472cd8abe48ffc59dee2a7e37f72e469ddfd7e (diff)
downloadpdfium-0fe8910834a14fd79593dc4726e282d284417221.tar.xz
Simplify CPDF_ShadingPattern::Validate().
Fix some nits in CPDF_ShadingPattern as well. Change-Id: I6b4b73f99031733a113fe2ad1bdc1d1e565b7a7d Reviewed-on: https://pdfium-review.googlesource.com/32738 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_shadingpattern.h')
-rw-r--r--core/fpdfapi/page/cpdf_shadingpattern.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_shadingpattern.h b/core/fpdfapi/page/cpdf_shadingpattern.h
index 17b6e4bb8c..bb633f9a4d 100644
--- a/core/fpdfapi/page/cpdf_shadingpattern.h
+++ b/core/fpdfapi/page/cpdf_shadingpattern.h
@@ -67,8 +67,8 @@ class CPDF_ShadingPattern : public CPDF_Pattern {
uint32_t nExpectedNumInputs,
uint32_t nExpectedNumOutputs) const;
- ShadingType m_ShadingType;
- bool m_bShadingObj;
+ ShadingType m_ShadingType = kInvalidShading;
+ const bool m_bShadingObj;
UnownedPtr<CPDF_Object> m_pShadingObj;
// Still keep |m_pCS| as some CPDF_ColorSpace (name object) are not managed