From e835574db56d3a59f444fa98318458d83ffe15a4 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 24 Oct 2018 18:46:26 +0000 Subject: Make CPDF_PathObject::m_Path private. Change-Id: I5c42af8e9e2d6a60648d291153326aef04e4c49e Reviewed-on: https://pdfium-review.googlesource.com/c/44513 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- core/fpdfapi/page/cpdf_pathobject.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 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 e6e0d19de8..c2166b3277 100644 --- a/core/fpdfapi/page/cpdf_pathobject.h +++ b/core/fpdfapi/page/cpdf_pathobject.h @@ -27,20 +27,22 @@ class CPDF_PathObject final : public CPDF_PageObject { void CalcBoundingBox(); + bool stroke() const { return m_bStroke; } + void set_stroke(bool stroke) { m_bStroke = stroke; } + int filltype() const { return m_FillType; } void set_filltype(int filltype) { m_FillType = filltype; } - bool stroke() const { return m_bStroke; } - void set_stroke(bool stroke) { m_bStroke = stroke; } + CPDF_Path& path() { return m_Path; } + const CPDF_Path& path() const { return m_Path; } const CFX_Matrix& matrix() const { return m_Matrix; } void set_matrix(const CFX_Matrix& matrix) { m_Matrix = matrix; } - CPDF_Path m_Path; - private: - int m_FillType = 0; bool m_bStroke = false; + int m_FillType = 0; + CPDF_Path m_Path; CFX_Matrix m_Matrix; }; -- cgit v1.2.3