diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-24 18:38:57 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-24 18:38:57 +0000 |
commit | 1313ca08f7156898acf09e893e3f0e20d2d85424 (patch) | |
tree | fd1150556c7b289d990382cec3b60d9f9881742f /core/fpdfapi/page/cpdf_pathobject.h | |
parent | f4f2b6d45e00c67a3c508618a829330a67b827ba (diff) | |
download | pdfium-1313ca08f7156898acf09e893e3f0e20d2d85424.tar.xz |
Make CPDF_PathObject::m_bStroke private.
Remove some setters on newly constructed objects, since |m_bStroke| is
already initialized to false.
Change-Id: I8d04efec997226fb86091566eea96604f18680aa
Reviewed-on: https://pdfium-review.googlesource.com/c/44511
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_pathobject.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_pathobject.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_pathobject.h b/core/fpdfapi/page/cpdf_pathobject.h index dd4cd55a79..9067147410 100644 --- a/core/fpdfapi/page/cpdf_pathobject.h +++ b/core/fpdfapi/page/cpdf_pathobject.h @@ -27,14 +27,17 @@ class CPDF_PathObject final : public CPDF_PageObject { void CalcBoundingBox(); + bool stroke() const { return m_bStroke; } + void set_stroke(bool stroke) { m_bStroke = stroke; } + 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 = 0; - bool m_bStroke = false; private: + bool m_bStroke = false; CFX_Matrix m_Matrix; }; |