From f4f2b6d45e00c67a3c508618a829330a67b827ba Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 24 Oct 2018 18:30:30 +0000 Subject: Start making CPDF_PathObject members private. Also move member initialization to the header. Change-Id: I557380ae774ddf887cefeb56df2a33e5b7cff8a4 Reviewed-on: https://pdfium-review.googlesource.com/c/44510 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- core/fpdfapi/page/cpdf_pathobject.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi/page/cpdf_pathobject.h') diff --git a/core/fpdfapi/page/cpdf_pathobject.h b/core/fpdfapi/page/cpdf_pathobject.h index 0a1e4d01f9..dd4cd55a79 100644 --- a/core/fpdfapi/page/cpdf_pathobject.h +++ b/core/fpdfapi/page/cpdf_pathobject.h @@ -27,9 +27,14 @@ class CPDF_PathObject final : public CPDF_PageObject { void CalcBoundingBox(); + const CFX_Matrix& matrix() const { return m_Matrix; } + void set_matrix(const CFX_Matrix& matrix) { m_Matrix = matrix; } + CPDF_Path m_Path; - int m_FillType; - bool m_bStroke; + int m_FillType = 0; + bool m_bStroke = false; + + private: CFX_Matrix m_Matrix; }; -- cgit v1.2.3